Sha256: 53d47cc621216c947bc9875af2f52822ddcf1df1978da19d6e054ad73359d6ec
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
module Ruboty module Jira module Actions class AssociateUser < Base def call associate reply_message rescue => e message.reply(e.message) end private def associate user = find_user(message[:jira_id]) return if user.nil? users[message[:chat_name]] = { name: user.name } end def reply_message if associate_user.nil? message.reply("The jira account #{message[:jira_id]} is not found") else message.reply('Registered.') end 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/associate_user.rb |
ruboty-jira-0.2.0 | lib/ruboty/jira/actions/associate_user.rb |