Exception: DkPaymentGateway::APIError
- Defined in:
- lib/dk_payment_gateway/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response_code ⇒ Object
readonly
Returns the value of attribute response_code.
-
#response_description ⇒ Object
readonly
Returns the value of attribute response_description.
-
#response_detail ⇒ Object
readonly
Returns the value of attribute response_detail.
-
#response_message ⇒ Object
readonly
Returns the value of attribute response_message.
Instance Method Summary collapse
-
#initialize(message, response_code: nil, response_message: nil, response_description: nil, response_detail: nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(message, response_code: nil, response_message: nil, response_description: nil, response_detail: nil) ⇒ APIError
Returns a new instance of APIError.
23 24 25 26 27 28 29 30 |
# File 'lib/dk_payment_gateway/errors.rb', line 23 def initialize(, response_code: nil, response_message: nil, response_description: nil, response_detail: nil) super() @response_code = response_code = @response_description = response_description @response_detail = response_detail end |
Instance Attribute Details
#response_code ⇒ Object (readonly)
Returns the value of attribute response_code.
21 22 23 |
# File 'lib/dk_payment_gateway/errors.rb', line 21 def response_code @response_code end |
#response_description ⇒ Object (readonly)
Returns the value of attribute response_description.
21 22 23 |
# File 'lib/dk_payment_gateway/errors.rb', line 21 def response_description @response_description end |
#response_detail ⇒ Object (readonly)
Returns the value of attribute response_detail.
21 22 23 |
# File 'lib/dk_payment_gateway/errors.rb', line 21 def response_detail @response_detail end |
#response_message ⇒ Object (readonly)
Returns the value of attribute response_message.
21 22 23 |
# File 'lib/dk_payment_gateway/errors.rb', line 21 def end |