Class: Suitcase::Hotel::BedType

Inherits:
Object
  • Object
show all
Defined in:
lib/suitcase/hotel/bed_type.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.


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

#descriptionObject

Internal: The description of the BedType.



9
10
11
# File 'lib/suitcase/hotel/bed_type.rb', line 9

def description
  @description
end

#idObject

Internal: The ID of the BedType.



6
7
8
# File 'lib/suitcase/hotel/bed_type.rb', line 6

def id
  @id
end