Exception: Eztz::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Eztz::ApiError
- Defined in:
- lib/eztz/errors.rb
Overview
Thrown when the API returns an error response.
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(response) ⇒ ApiError
constructor
A new instance of ApiError.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ ApiError
Returns a new instance of ApiError.
9 10 11 |
# File 'lib/eztz/errors.rb', line 9 def initialize(response) = response end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
7 8 9 |
# File 'lib/eztz/errors.rb', line 7 def end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/eztz/errors.rb', line 13 def to_s .to_s end |