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