rike422/ruboty-jira

View on GitHub
lib/ruboty/jira/actions/issue_detail.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Ruboty
  module Jira
    module Actions
      class IssueDetail < Base
        def call
          message.reply(issue_detail)
        rescue => e
          message.reply(e.message)
        end

        private

        def issue_detail
          issue = find_issue(message[:issue])
          return issue.summary unless issue.nil?
        end
      end
    end
  end
end