Exception: Moysklad::Client::JsonParsedError
- Defined in:
- lib/moysklad/client/errors.rb
Direct Known Subclasses
BadGatewayError, InternalServerError, MethodNotAllowedError, ResourceForbidden, UnauthorizedError
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(result) ⇒ JsonParsedError
constructor
A new instance of JsonParsedError.
Methods inherited from Error
Constructor Details
#initialize(result) ⇒ JsonParsedError
Returns a new instance of JsonParsedError.
69 70 71 |
# File 'lib/moysklad/client/errors.rb', line 69 def initialize result super result.to_json end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
73 74 75 |
# File 'lib/moysklad/client/errors.rb', line 73 def error @error end |