Class: LevelTravel::References
- Inherits:
-
Object
- Object
- LevelTravel::References
- Defined in:
- lib/level_travel/references.rb
Class Method Summary collapse
- .airlines ⇒ Object
- .airports ⇒ Object
- .departures(prioritized_count: 0) ⇒ Object
- .destinations ⇒ Object
-
.flights_and_nights(city_from:, country_to:, start_date:, end_date:) ⇒ Object
:reek:LongParameterList.
- .hotel_dump ⇒ Object
- .hotel_room_dump ⇒ Object
-
.hotels(hotel_ids: [], region_ids: [], csv: false) ⇒ Object
:reek:BooleanParameter.
- .operators ⇒ Object
Class Method Details
.airlines ⇒ Object
17 18 19 |
# File 'lib/level_travel/references.rb', line 17 def self.airlines get('airlines') end |
.airports ⇒ Object
21 22 23 |
# File 'lib/level_travel/references.rb', line 21 def self.airports get('airports') end |
.departures(prioritized_count: 0) ⇒ Object
5 6 7 |
# File 'lib/level_travel/references.rb', line 5 def self.departures(prioritized_count: 0) get('departures', prioritized_count: prioritized_count) end |
.destinations ⇒ Object
9 10 11 |
# File 'lib/level_travel/references.rb', line 9 def self.destinations get('destinations') end |
.flights_and_nights(city_from:, country_to:, start_date:, end_date:) ⇒ Object
:reek:LongParameterList
42 43 44 45 46 47 |
# File 'lib/level_travel/references.rb', line 42 def self.flights_and_nights(city_from:, country_to:, start_date:, end_date:) get( 'flights_and_nights', city_from: city_from, country_to: country_to, start_date: start_date, end_date: end_date ) end |
.hotel_dump ⇒ Object
25 26 27 |
# File 'lib/level_travel/references.rb', line 25 def self.hotel_dump get('hotel_dump') end |
.hotel_room_dump ⇒ Object
29 30 31 |
# File 'lib/level_travel/references.rb', line 29 def self.hotel_room_dump get('hotel_room_dump') end |
.hotels(hotel_ids: [], region_ids: [], csv: false) ⇒ Object
:reek:BooleanParameter
34 35 36 37 38 39 |
# File 'lib/level_travel/references.rb', line 34 def self.hotels(hotel_ids: [], region_ids: [], csv: false) get( 'hotels', hotel_ids: hotel_ids, region_ids: region_ids, csv: csv ) end |
.operators ⇒ Object
13 14 15 |
# File 'lib/level_travel/references.rb', line 13 def self.operators get('operators') end |