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

- (Reservation) initialize(info)



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

- (Object) confirmation_numbers

Returns the value of attribute confirmation_numbers



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

def confirmation_numbers
  @confirmation_numbers
end

- (Object) itinerary_id

Returns the value of attribute itinerary_id



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

def itinerary_id
  @itinerary_id
end