Class: AltFlights::Booking
- Inherits:
-
Object
- Object
- AltFlights::Booking
- Defined in:
- lib/altflights/booking.rb
Instance Attribute Summary collapse
-
#airline ⇒ Object
Returns the value of attribute airline.
-
#airline_display ⇒ Object
Returns the value of attribute airline_display.
-
#arrival_time ⇒ Object
Returns the value of attribute arrival_time.
-
#cabin ⇒ Object
Returns the value of attribute cabin.
-
#departure_time ⇒ Object
Returns the value of attribute departure_time.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#price ⇒ Object
Returns the value of attribute price.
-
#price_url ⇒ Object
Returns the value of attribute price_url.
-
#stops ⇒ Object
Returns the value of attribute stops.
Instance Method Summary collapse
- #flights ⇒ Object
-
#initialize ⇒ Booking
constructor
A new instance of Booking.
Constructor Details
#initialize ⇒ Booking
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
#airline ⇒ Object
Returns the value of attribute airline.
5 6 7 |
# File 'lib/altflights/booking.rb', line 5 def airline @airline end |
#airline_display ⇒ Object
Returns the value of attribute airline_display.
5 6 7 |
# File 'lib/altflights/booking.rb', line 5 def airline_display @airline_display end |
#arrival_time ⇒ Object
Returns the value of attribute arrival_time.
5 6 7 |
# File 'lib/altflights/booking.rb', line 5 def arrival_time @arrival_time end |
#cabin ⇒ Object
Returns the value of attribute cabin.
5 6 7 |
# File 'lib/altflights/booking.rb', line 5 def cabin @cabin end |
#departure_time ⇒ Object
Returns the value of attribute departure_time.
5 6 7 |
# File 'lib/altflights/booking.rb', line 5 def departure_time @departure_time end |
#destination ⇒ Object
Returns the value of attribute destination.
5 6 7 |
# File 'lib/altflights/booking.rb', line 5 def destination @destination end |
#duration ⇒ Object
Returns the value of attribute duration.
5 6 7 |
# File 'lib/altflights/booking.rb', line 5 def duration @duration end |
#origin ⇒ Object
Returns the value of attribute origin.
5 6 7 |
# File 'lib/altflights/booking.rb', line 5 def origin @origin end |
#price ⇒ Object
Returns the value of attribute price.
5 6 7 |
# File 'lib/altflights/booking.rb', line 5 def price @price end |
#price_url ⇒ Object
Returns the value of attribute price_url.
5 6 7 |
# File 'lib/altflights/booking.rb', line 5 def price_url @price_url end |
#stops ⇒ Object
Returns the value of attribute stops.
5 6 7 |
# File 'lib/altflights/booking.rb', line 5 def stops @stops end |
Instance Method Details
#flights ⇒ Object
11 12 13 |
# File 'lib/altflights/booking.rb', line 11 def flights @flights end |