Class: Skyscanner::Route
- Inherits:
-
Object
- Object
- Skyscanner::Route
- Defined in:
- lib/movlog/route.rb
Overview
Route info
Instance Attribute Summary collapse
-
#flights ⇒ Object
readonly
Returns the value of attribute flights.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ Route
constructor
A new instance of Route.
- #to_hash ⇒ Object
Constructor Details
Instance Attribute Details
#flights ⇒ Object (readonly)
Returns the value of attribute flights.
7 8 9 |
# File 'lib/movlog/route.rb', line 7 def flights @flights end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
6 7 8 |
# File 'lib/movlog/route.rb', line 6 def @meta end |
Class Method Details
Instance Method Details
#to_hash ⇒ Object
23 24 25 |
# File 'lib/movlog/route.rb', line 23 def to_hash { meta: @meta.to_hash, flights: @flights.to_hash } end |