Exception: PayTrace::Exceptions::ErrorResponse
- Defined in:
- lib/paytrace/exceptions.rb
Overview
Raised by default when an error response is returned from the server
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
16 17 18 |
# File 'lib/paytrace/exceptions.rb', line 16 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
14 15 16 |
# File 'lib/paytrace/exceptions.rb', line 14 def response @response end |
Instance Method Details
#to_s ⇒ Object
20 21 22 |
# File 'lib/paytrace/exceptions.rb', line 20 def to_s @response.get_response() end |