Exception: TreezorConnect::AlreadyCreatedError
- Defined in:
- lib/treezor_connect/errors.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
Returns the value of attribute object.
-
#treezor_response ⇒ Object
Returns the value of attribute treezor_response.
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(response) ⇒ AlreadyCreatedError
constructor
A new instance of AlreadyCreatedError.
Constructor Details
#initialize(response) ⇒ AlreadyCreatedError
Returns a new instance of AlreadyCreatedError.
18 19 20 21 |
# File 'lib/treezor_connect/errors.rb', line 18 def initialize(response) @treezor_response = ::TreezorConnect::TreezorResponse.from_http_response(response) super('Treezor resource has already been created', {}, 303) end |
Instance Attribute Details
#object ⇒ Object
Returns the value of attribute object.
16 17 18 |
# File 'lib/treezor_connect/errors.rb', line 16 def object @object end |
#treezor_response ⇒ Object
Returns the value of attribute treezor_response.
16 17 18 |
# File 'lib/treezor_connect/errors.rb', line 16 def treezor_response @treezor_response end |