Exception: AbtainBilling::ResponseError
- Inherits:
-
AbtainBillingError
- Object
- StandardError
- AbtainBillingError
- AbtainBilling::ResponseError
- Defined in:
- lib/abtain_billing/lib/connection.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, message = nil) ⇒ ResponseError
constructor
A new instance of ResponseError.
- #to_s ⇒ Object
Constructor Details
#initialize(response, message = nil) ⇒ ResponseError
Returns a new instance of ResponseError.
16 17 18 19 |
# File 'lib/abtain_billing/lib/connection.rb', line 16 def initialize(response, = nil) @response = response @message = end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
14 15 16 |
# File 'lib/abtain_billing/lib/connection.rb', line 14 def response @response end |
Instance Method Details
#to_s ⇒ Object
21 22 23 |
# File 'lib/abtain_billing/lib/connection.rb', line 21 def to_s "Failed with #{response.code} #{response. if response.respond_to?(:message)}" end |