Class: Suitcase::Amenity

Inherits:
Object
  • Object
show all
Defined in:
lib/suitcase/hotel/amenity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(info) ⇒ Amenity



5
6
7
# File 'lib/suitcase/hotel/amenity.rb', line 5

def initialize(info)
  @id, @description = info[:id], info[:description]
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description



3
4
5
# File 'lib/suitcase/hotel/amenity.rb', line 3

def description
  @description
end

#idObject

Returns the value of attribute id



3
4
5
# File 'lib/suitcase/hotel/amenity.rb', line 3

def id
  @id
end