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

- (Amenity) initialize(info)



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

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

Instance Attribute Details

- (Object) description

Returns the value of attribute description



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

def description
  @description
end

- (Object) id

Returns the value of attribute id



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

def id
  @id
end