Exception: QPay::Error
- Inherits:
-
StandardError
- Object
- StandardError
- QPay::Error
- Defined in:
- lib/qpay/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#raw_body ⇒ Object
readonly
Returns the value of attribute raw_body.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code:, code: nil, message: nil, raw_body: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(status_code:, code: nil, message: nil, raw_body: nil) ⇒ Error
Returns a new instance of Error.
7 8 9 10 11 12 |
# File 'lib/qpay/errors.rb', line 7 def initialize(status_code:, code: nil, message: nil, raw_body: nil) @status_code = status_code @code = code @raw_body = raw_body super(()) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/qpay/errors.rb', line 5 def code @code end |
#raw_body ⇒ Object (readonly)
Returns the value of attribute raw_body.
5 6 7 |
# File 'lib/qpay/errors.rb', line 5 def raw_body @raw_body end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
5 6 7 |
# File 'lib/qpay/errors.rb', line 5 def status_code @status_code end |