Class: Ruboty::SlackTakeTurns::Actions::Assign

Inherits:
Base
  • Object
show all
Defined in:
lib/ruboty/slack_take_turns/actions/assign.rb

Constant Summary

Constants inherited from Base

Base::NAMESPACE

Instance Attribute Summary

Attributes inherited from Base

#message

Instance Method Summary collapse

Methods inherited from Base

#channel, #channel_data, #current_user_id, #current_user_id=, #current_user_name, #data, #excluded_user_ids, #find_user_by_user_id, #find_user_id_by_user_name, #initialize, #sender_id, #slack_client, #target_user_ids

Constructor Details

This class inherits a constructor from Ruboty::SlackTakeTurns::Actions::Base

Instance Method Details

#callObject



5
6
7
8
9
10
11
12
13
# File 'lib/ruboty/slack_take_turns/actions/assign.rb', line 5

def call
  message.reply(assign)
rescue ActionBaseError => e
  message.reply(e.message)
  Ruboty.logger.info e.to_s
rescue => e
  message.reply(e.message)
  raise e
end