Class: Kayak::Trip
- Inherits:
-
Object
- Object
- Kayak::Trip
- Defined in:
- lib/kayak/trip.rb
Instance Attribute Summary collapse
-
#legs ⇒ Object
Returns the value of attribute legs.
-
#price ⇒ Object
Returns the value of attribute price.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Trip
constructor
A new instance of Trip.
Constructor Details
#initialize ⇒ Trip
Returns a new instance of Trip.
5 6 7 |
# File 'lib/kayak/trip.rb', line 5 def initialize self.legs = [] end |
Instance Attribute Details
#legs ⇒ Object
Returns the value of attribute legs.
3 4 5 |
# File 'lib/kayak/trip.rb', line 3 def legs @legs end |
#price ⇒ Object
Returns the value of attribute price.
3 4 5 |
# File 'lib/kayak/trip.rb', line 3 def price @price end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/kayak/trip.rb', line 3 def url @url end |