Exception: Twi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Twi::Error
- Defined in:
- lib/twi/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(attributes = {}) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/twi/error.rb', line 5 def initialize(attributes = {}) @code = attributes[:code] super attributes[:message] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/twi/error.rb', line 3 def code @code end |