Exception: RiotAPI::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- RiotAPI::ResponseError
- Defined in:
- lib/riot_api/errors.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(response) ⇒ ResponseError
Returns a new instance of ResponseError.
8 9 10 11 |
# File 'lib/riot_api/errors.rb', line 8 def initialize(response) self.response = response super("An error has occurred during the HTTP request. Check the response for more details.") end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
6 7 8 |
# File 'lib/riot_api/errors.rb', line 6 def response @response end |