Exception: AeriesApi::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- AeriesApi::ResponseError
- Defined in:
- lib/aeries-api.rb
Direct Known Subclasses
AuthenticationError, BadRequest, Forbidden, NotFound, ServerError
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.
9 10 11 12 13 |
# File 'lib/aeries-api.rb', line 9 def initialize(response) = response.parsed_response['Message'] super(.length <= 50 ? [0..50] : ) @response = response end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
7 8 9 |
# File 'lib/aeries-api.rb', line 7 def response @response end |