Exception: Finswitz::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Finswitz::ApiError
- Defined in:
- lib/finswitz.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status: nil, response: nil) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(message, status: nil, response: nil) ⇒ ApiError
Returns a new instance of ApiError.
15 16 17 18 19 |
# File 'lib/finswitz.rb', line 15 def initialize(, status: nil, response: nil) super() @status = status @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
13 14 15 |
# File 'lib/finswitz.rb', line 13 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
13 14 15 |
# File 'lib/finswitz.rb', line 13 def status @status end |