Exception: Buckaruby::InvalidResponseException
- Inherits:
-
BuckarooException
- Object
- StandardError
- BuckarooException
- Buckaruby::InvalidResponseException
- Defined in:
- lib/buckaruby/exception.rb
Overview
Exception raised when the response from Buckaroo was invalid.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ InvalidResponseException
constructor
A new instance of InvalidResponseException.
Constructor Details
#initialize(response) ⇒ InvalidResponseException
52 53 54 55 56 57 |
# File 'lib/buckaruby/exception.rb', line 52 def initialize(response) @response = response = "Invalid response received from Buckaroo: #{response.} (#{response.code})" super() end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
50 51 52 |
# File 'lib/buckaruby/exception.rb', line 50 def response @response end |