Exception: TeslaAPI::Errors::InvalidJSON
- Inherits:
-
StandardError
- Object
- StandardError
- TeslaAPI::Errors::InvalidJSON
- Defined in:
- lib/tesla-api/errors.rb
Overview
JSON cannot be parsed
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
JSON parsing error details.
Instance Method Summary collapse
-
#initialize(error) ⇒ InvalidJSON
constructor
A new instance of InvalidJSON.
- #to_s ⇒ Object
Constructor Details
#initialize(error) ⇒ InvalidJSON
Returns a new instance of InvalidJSON.
9 10 11 |
# File 'lib/tesla-api/errors.rb', line 9 def initialize(error) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
JSON parsing error details
7 8 9 |
# File 'lib/tesla-api/errors.rb', line 7 def error @error end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/tesla-api/errors.rb', line 13 def to_s error.to_s end |