Exception: BaseApiClient::ApiError
- Defined in:
- lib/dynalist/base_api_client.rb
Direct Known Subclasses
InvalidError, InvalidTokenError, LockFailError, TooManyRequestsError
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response = nil) ⇒ ApiError
constructor
A new instance of ApiError.
- #message ⇒ Object
Constructor Details
#initialize(response = nil) ⇒ ApiError
Returns a new instance of ApiError.
17 18 19 |
# File 'lib/dynalist/base_api_client.rb', line 17 def initialize(response = nil) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
14 15 16 |
# File 'lib/dynalist/base_api_client.rb', line 14 def response @response end |
Instance Method Details
#message ⇒ Object
21 22 23 |
# File 'lib/dynalist/base_api_client.rb', line 21 def @response[:_msg] end |