Exception: ExternalServices::Api::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ExternalServices::Api::Error
- Defined in:
- lib/external_services/api.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ Error
Returns a new instance of Error.
9 10 11 |
# File 'lib/external_services/api.rb', line 9 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/external_services/api.rb', line 7 def response @response end |
Instance Method Details
#message ⇒ Object
13 14 15 |
# File 'lib/external_services/api.rb', line 13 def @response.inspect end |