Exception: Zaypay::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Zaypay::Error
- Defined in:
- lib/zaypay/error.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type = nil, message = "default message") ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(type = nil, message = "default message") ⇒ Error
Returns a new instance of Error.
3 4 5 6 |
# File 'lib/zaypay/error.rb', line 3 def initialize(type = nil, = "default message") @type = type super() end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/zaypay/error.rb', line 7 def type @type end |