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