Module: SlackBot::Concerns::InteractionKlass::ClassMethods

Defined in:
lib/slack_bot/concerns/interaction_klass.rb

Instance Method Summary collapse

Instance Method Details

#interaction(klass) ⇒ Object



12
13
14
# File 'lib/slack_bot/concerns/interaction_klass.rb', line 12

def interaction(klass)
  define_singleton_method(:interaction_klass) { klass }
end

#interaction_klassObject



8
9
10
# File 'lib/slack_bot/concerns/interaction_klass.rb', line 8

def interaction_klass
  raise SlackBot::Errors::InteractionClassNotImplemented.new(name)
end