Class: Slack::Web::Api::Errors::SlackError
- Inherits:
-
Faraday::Error
- Object
- Faraday::Error
- Slack::Web::Api::Errors::SlackError
- Defined in:
- lib/slack/web/api/errors/slack_error.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response = nil) ⇒ SlackError
constructor
A new instance of SlackError.
Constructor Details
#initialize(message, response = nil) ⇒ SlackError
Returns a new instance of SlackError.
9 10 11 12 |
# File 'lib/slack/web/api/errors/slack_error.rb', line 9 def initialize(, response = nil) super @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/slack/web/api/errors/slack_error.rb', line 7 def response @response end |