Exception: Fakery::ApiError

Inherits:
FakeryError show all
Defined in:
lib/fakery/api_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, **opts) ⇒ ApiError

Returns a new instance of ApiError.



2
3
4
5
# File 'lib/fakery/api_error.rb', line 2

def initialize(*args, **opts)
  super(*args)
  @response = opts[:response]
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/fakery/api_error.rb', line 7

def response
  @response
end