Exception: ApiRecord::ApiInvalidError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/api_record/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ApiInvalidError

Returns a new instance of ApiInvalidError.



18
19
20
# File 'lib/api_record/errors.rb', line 18

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



16
17
18
# File 'lib/api_record/errors.rb', line 16

def response
  @response
end