Class: Suitcase::BedType

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

Overview

Public: A BedType represents a bed configuration for a Room.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(info) ⇒ BedType

Internal: Create a new BedType.

info - A Hash from the parsed API response with the following keys:

:id           - The ID of the BedType.
:description  3- The description of the BedType.


47
48
49
# File 'lib/suitcase/hotel/hotel.rb', line 47

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

Instance Attribute Details

#descriptionObject

Internal: The description of the BedType.



40
41
42
# File 'lib/suitcase/hotel/hotel.rb', line 40

def description
  @description
end

#idObject

Internal: The ID of the BedType.



37
38
39
# File 'lib/suitcase/hotel/hotel.rb', line 37

def id
  @id
end