Class: Suitcase::Reservation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(info) ⇒ Reservation

Returns a new instance of Reservation



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

def initialize(info)
  @itinerary_id, @confirmation_numbers = info[:itinerary_id], [info[:confirmation_numbers]].flatten
end

Instance Attribute Details

#confirmation_numbersObject

Returns the value of attribute confirmation_numbers



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

def confirmation_numbers
  @confirmation_numbers
end

#itinerary_idObject

Returns the value of attribute itinerary_id



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

def itinerary_id
  @itinerary_id
end