Exception: Fakery::ApiError
- Inherits:
-
FakeryError
- Object
- StandardError
- FakeryError
- Fakery::ApiError
- Defined in:
- lib/fakery/api_error.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(*args, **opts) ⇒ ApiError
constructor
A new instance of ApiError.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
7 8 9 |
# File 'lib/fakery/api_error.rb', line 7 def response @response end |