Exception: Ly::Hotel::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ly/hotel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, code = nil)
  super(message)
  @code = code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



85
86
87
# File 'lib/ly/hotel.rb', line 85

def code
  @code
end