Exception: Moysklad::Client::JsonParsedError

Inherits:
Error
  • Object
show all
Defined in:
lib/moysklad/client/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#message

Instance Method Summary collapse

Methods inherited from Error

#to_s

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

#errorObject (readonly)

Returns the value of attribute error.



73
74
75
# File 'lib/moysklad/client/errors.rb', line 73

def error
  @error
end