Class: SlackInteractiveClient::Bot

Inherits:
Object
  • Object
show all
Defined in:
lib/slack_interactive_client/bot.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.interactionsObject (readonly)

Returns the value of attribute interactions.



14
15
16
# File 'lib/slack_interactive_client/bot.rb', line 14

def interactions
  @interactions
end

Class Method Details

.define(&block) ⇒ Object



16
17
18
19
# File 'lib/slack_interactive_client/bot.rb', line 16

def define(&block)
  @interactions ||= HashWithIndifferentAccess.new
  instance_exec(&block)
end

.interaction(name, interaction_class) ⇒ Object



21
22
23
# File 'lib/slack_interactive_client/bot.rb', line 21

def interaction(name, interaction_class)
  @interactions[name] = interaction_class
end