Sha256: be51c616458f9785b5591cd09fa59b9cba7de2ec85ac3d8e7486ab65dae77560

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruboty-jira-0.3.0 lib/ruboty/jira/actions/issue_detail.rb
ruboty-jira-0.2.0 lib/ruboty/jira/actions/issue_detail.rb