Class: Amadeus::Namespaces::ReferenceData

Inherits:
Client::Decorator
  • Object
show all
Defined in:
lib/amadeus/namespaces/reference_data.rb,
lib/amadeus/namespaces/reference_data/urls.rb,
lib/amadeus/namespaces/reference_data/airlines.rb,
lib/amadeus/namespaces/reference_data/location.rb,
lib/amadeus/namespaces/reference_data/locations.rb,
lib/amadeus/namespaces/reference_data/locations/airports.rb,
lib/amadeus/namespaces/reference_data/urls/checkin_links.rb

Overview

A namespaced client for the /v2/reference_data endpoints

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.reference_data

Defined Under Namespace

Classes: Airlines, Location, Locations, Urls

Instance Method Summary collapse

Instance Method Details

#airlinesAmadeus::Namespaces::ReferenceData::Airlines

The namespace for the Airline Code APIs - accessing a specific airline

Examples:

amadeus.reference_data.airlines('U2')

Parameters:

  • airline_id (Number)

    The IATA ID for the airline

Returns:



53
54
55
# File 'lib/amadeus/namespaces/reference_data.rb', line 53

def airlines
  Amadeus::Namespaces::ReferenceData::Airlines.new(client)
end

#location(location_id) ⇒ Amadeus::Namespaces::ReferenceData::Locations

The namespace for the Location APIs - accessing a specific location

Examples:

amadeus.reference_data.location('ALHR')

Parameters:

  • location_id (Number)

    The ID for the location

Returns:



42
43
44
# File 'lib/amadeus/namespaces/reference_data.rb', line 42

def location(location_id)
  Amadeus::Namespaces::ReferenceData::Location.new(client, location_id)
end

#locationsAmadeus::Namespaces::ReferenceData::Locations

The namespace for the Locations APIs:

Examples:

amadeus.reference_data.locations
amadeus.reference_data.locations.airports

Returns:



31
32
33
# File 'lib/amadeus/namespaces/reference_data.rb', line 31

def locations
  Amadeus::Namespaces::ReferenceData::Locations.new(client)
end

#urlsAmadeus::Namespaces::ReferenceData::Urls

The namespace for the Urls APIs.

Examples:

amadeus.reference_data.urls.checkin_links

Returns:



20
21
22
# File 'lib/amadeus/namespaces/reference_data.rb', line 20

def urls
  Amadeus::Namespaces::ReferenceData::Urls.new(client)
end