Class: LevelTravel::References

Inherits:
Object
  • Object
show all
Defined in:
lib/level_travel/references.rb

Class Method Summary collapse

Class Method Details

.airlinesObject



17
18
19
# File 'lib/level_travel/references.rb', line 17

def self.airlines
  get('airlines')
end

.airportsObject



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

.destinationsObject



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_dumpObject



25
26
27
# File 'lib/level_travel/references.rb', line 25

def self.hotel_dump
  get('hotel_dump')
end

.hotel_room_dumpObject



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

.operatorsObject



13
14
15
# File 'lib/level_travel/references.rb', line 13

def self.operators
  get('operators')
end