Class: Kayak::Trip

Inherits:
Object
  • Object
show all
Defined in:
lib/kayak/trip.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTrip

Returns a new instance of Trip.



5
6
7
# File 'lib/kayak/trip.rb', line 5

def initialize
  self.legs = []
end

Instance Attribute Details

#legsObject

Returns the value of attribute legs.



3
4
5
# File 'lib/kayak/trip.rb', line 3

def legs
  @legs
end

#priceObject

Returns the value of attribute price.



3
4
5
# File 'lib/kayak/trip.rb', line 3

def price
  @price
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/kayak/trip.rb', line 3

def url
  @url
end