Class: Skyscanner::Flight

Inherits:
Object
  • Object
show all
Defined in:
lib/movlog/route.rb

Overview

Flight info

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Flight

Returns a new instance of Flight.



31
32
33
34
35
36
37
38
# File 'lib/movlog/route.rb', line 31

def initialize(data)
  @min_price = data[:min_price]
  @direct = data[:direct]
  @carriers = data[:carriers]
  @origin = data[:origin]
  @destination = data[:destination]
  @date = data[:date]
end

Instance Attribute Details

#carriersObject (readonly)

Returns the value of attribute carriers.



27
28
29
# File 'lib/movlog/route.rb', line 27

def carriers
  @carriers
end

#dateObject (readonly)

Returns the value of attribute date.



29
30
31
# File 'lib/movlog/route.rb', line 29

def date
  @date
end

#destinationObject (readonly)

Returns the value of attribute destination.



28
29
30
# File 'lib/movlog/route.rb', line 28

def destination
  @destination
end

#directObject (readonly)

Returns the value of attribute direct.



26
27
28
# File 'lib/movlog/route.rb', line 26

def direct
  @direct
end

#min_priceObject (readonly)

Returns the value of attribute min_price.



25
26
27
# File 'lib/movlog/route.rb', line 25

def min_price
  @min_price
end

#originObject (readonly)

Returns the value of attribute origin.



28
29
30
# File 'lib/movlog/route.rb', line 28

def origin
  @origin
end