Exception: Slacks::Response::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Slacks::Response::Error
- Defined in:
- lib/slacks/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(command, params, response, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(command, params, response, message) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 13 14 15 16 |
# File 'lib/slacks/errors.rb', line 8 def initialize(command, params, response, ) super @command = command @params = params @response = response additional_information[:command] = command additional_information[:params] = params additional_information[:response] = response end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
6 7 8 |
# File 'lib/slacks/errors.rb', line 6 def command @command end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
6 7 8 |
# File 'lib/slacks/errors.rb', line 6 def params @params end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/slacks/errors.rb', line 6 def response @response end |