Exception: SlackBot::Errors::UnknownActionTypeError

Inherits:
SlackBot::Error
  • Object
show all
Defined in:
lib/slack_bot/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action_type) ⇒ UnknownActionTypeError

Returns a new instance of UnknownActionTypeError.



77
78
79
80
# File 'lib/slack_bot/errors.rb', line 77

def initialize(action_type)
  @action_type = action_type
  super("Unknown action type: #{action_type}")
end

Instance Attribute Details

#action_typeObject (readonly)

Returns the value of attribute action_type.



76
77
78
# File 'lib/slack_bot/errors.rb', line 76

def action_type
  @action_type
end