Class: Suitcase::Hotel::BedType
- Inherits:
-
Object
- Object
- Suitcase::Hotel::BedType
- Defined in:
- lib/suitcase/hotel/bed_type.rb
Overview
Public: A BedType represents a bed configuration for a Room.
Instance Attribute Summary collapse
-
#description ⇒ Object
Internal: The description of the BedType.
-
#id ⇒ Object
Internal: The ID of the BedType.
Instance Method Summary collapse
-
#initialize(info) ⇒ BedType
constructor
Internal: Create a new BedType.
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.
16 17 18 |
# File 'lib/suitcase/hotel/bed_type.rb', line 16 def initialize(info) @id, @description = info[:id], info[:description] end |
Instance Attribute Details
#description ⇒ Object
Internal: The description of the BedType.
9 10 11 |
# File 'lib/suitcase/hotel/bed_type.rb', line 9 def description @description end |
#id ⇒ Object
Internal: The ID of the BedType.
6 7 8 |
# File 'lib/suitcase/hotel/bed_type.rb', line 6 def id @id end |