Exception: ApiRecord::ApiError

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

Direct Known Subclasses

HttpClientError, HttpServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ApiError

Returns a new instance of ApiError.



26
27
28
# File 'lib/api_record/errors.rb', line 26

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



24
25
26
# File 'lib/api_record/errors.rb', line 24

def response
  @response
end