Exception: Ly::Hotel::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Ly::Hotel::Error
- Defined in:
- lib/ly/hotel.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code = nil) ⇒ Error
Returns a new instance of Error.
87 88 89 90 |
# File 'lib/ly/hotel.rb', line 87 def initialize(, code = nil) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
85 86 87 |
# File 'lib/ly/hotel.rb', line 85 def code @code end |