Class: AngieCoreApi::Flight

Inherits:
Object
  • Object
show all
Defined in:
lib/angie-core-api/flight.rb

Class Method Summary collapse

Class Method Details

.info(default_airport, airline, flight_number, date) ⇒ Object



5
6
7
8
# File 'lib/angie-core-api/flight.rb', line 5

def self.info(default_airport, airline, flight_number, date)
  url = "/flights/#{default_airport}/#{URI.encode_www_form_component(airline)}/#{URI.encode_www_form_component(flight_number)}/#{date}"
  Client.data(:get, url)
end