Class: Suitcase::BedType
- Inherits:
-
Object
- Object
- Suitcase::BedType
- Defined in:
- lib/suitcase/hotel/hotel.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.
47 48 49 |
# File 'lib/suitcase/hotel/hotel.rb', line 47 def initialize(info) @id, @description = info[:id], info[:description] end |
Instance Attribute Details
#description ⇒ Object
Internal: The description of the BedType.
40 41 42 |
# File 'lib/suitcase/hotel/hotel.rb', line 40 def description @description end |
#id ⇒ Object
Internal: The ID of the BedType.
37 38 39 |
# File 'lib/suitcase/hotel/hotel.rb', line 37 def id @id end |