Class: AltFlights::Booking

Inherits:
Object
  • Object
show all
Defined in:
lib/altflights/booking.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBooking

Returns a new instance of Booking.



7
8
9
# File 'lib/altflights/booking.rb', line 7

def initialize
  @flights = Array.new
end

Instance Attribute Details

#airlineObject

Returns the value of attribute airline.



5
6
7
# File 'lib/altflights/booking.rb', line 5

def airline
  @airline
end

#airline_displayObject

Returns the value of attribute airline_display.



5
6
7
# File 'lib/altflights/booking.rb', line 5

def airline_display
  @airline_display
end

#arrival_timeObject

Returns the value of attribute arrival_time.



5
6
7
# File 'lib/altflights/booking.rb', line 5

def arrival_time
  @arrival_time
end

#cabinObject

Returns the value of attribute cabin.



5
6
7
# File 'lib/altflights/booking.rb', line 5

def cabin
  @cabin
end

#departure_timeObject

Returns the value of attribute departure_time.



5
6
7
# File 'lib/altflights/booking.rb', line 5

def departure_time
  @departure_time
end

#destinationObject

Returns the value of attribute destination.



5
6
7
# File 'lib/altflights/booking.rb', line 5

def destination
  @destination
end

#durationObject

Returns the value of attribute duration.



5
6
7
# File 'lib/altflights/booking.rb', line 5

def duration
  @duration
end

#originObject

Returns the value of attribute origin.



5
6
7
# File 'lib/altflights/booking.rb', line 5

def origin
  @origin
end

#priceObject

Returns the value of attribute price.



5
6
7
# File 'lib/altflights/booking.rb', line 5

def price
  @price
end

#price_urlObject

Returns the value of attribute price_url.



5
6
7
# File 'lib/altflights/booking.rb', line 5

def price_url
  @price_url
end

#stopsObject

Returns the value of attribute stops.



5
6
7
# File 'lib/altflights/booking.rb', line 5

def stops
  @stops
end

Instance Method Details

#flightsObject



11
12
13
# File 'lib/altflights/booking.rb', line 11

def flights
  @flights
end