Class: Skyscanner::Flight
- Inherits:
-
Object
- Object
- Skyscanner::Flight
- Defined in:
- lib/movlog/route.rb
Overview
Flight info
Instance Attribute Summary collapse
-
#carriers ⇒ Object
readonly
Returns the value of attribute carriers.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
-
#direct ⇒ Object
readonly
Returns the value of attribute direct.
-
#min_price ⇒ Object
readonly
Returns the value of attribute min_price.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(data) ⇒ Flight
constructor
A new instance of Flight.
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
#carriers ⇒ Object (readonly)
Returns the value of attribute carriers.
27 28 29 |
# File 'lib/movlog/route.rb', line 27 def carriers @carriers end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
29 30 31 |
# File 'lib/movlog/route.rb', line 29 def date @date end |
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
28 29 30 |
# File 'lib/movlog/route.rb', line 28 def destination @destination end |
#direct ⇒ Object (readonly)
Returns the value of attribute direct.
26 27 28 |
# File 'lib/movlog/route.rb', line 26 def direct @direct end |
#min_price ⇒ Object (readonly)
Returns the value of attribute min_price.
25 26 27 |
# File 'lib/movlog/route.rb', line 25 def min_price @min_price end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
28 29 30 |
# File 'lib/movlog/route.rb', line 28 def origin @origin end |