Class: Amadeus::Namespaces::ReferenceData::Locations
- Inherits:
-
Client::Decorator
- Object
- Client::Decorator
- Amadeus::Namespaces::ReferenceData::Locations
- Defined in:
- lib/amadeus/namespaces/reference_data/locations.rb,
lib/amadeus/namespaces/reference_data/locations/airports.rb,
lib/amadeus/namespaces/reference_data/locations/point_of_interest.rb,
lib/amadeus/namespaces/reference_data/locations/points_of_interest.rb,
lib/amadeus/namespaces/reference_data/locations/points_of_interest/by_square.rb
Overview
Defined Under Namespace
Classes: Airports, PointOfInterest, PointsOfInterest
Instance Method Summary collapse
-
#airports ⇒ Amadeus::Namespaces::ReferenceData::Locations::Airports
The namespace for the Airports API:.
-
#get(params = {}) ⇒ Amadeus::Response
Returns a list of airports and cities matching a given keyword.
-
#point_of_interest(location_id) ⇒ Amadeus::Namespaces::ReferenceData::Locations::PointOfInterest
The namespace for the Point Of Interest API:.
-
#points_of_interest ⇒ Amadeus::Namespaces::ReferenceData::Locations::PointsOfInterest
The namespace for the Points Of Interest API:.
Instance Method Details
#airports ⇒ Amadeus::Namespaces::ReferenceData::Locations::Airports
The namespace for the Airports API:
21 22 23 |
# File 'lib/amadeus/namespaces/reference_data/locations.rb', line 21 def airports Amadeus::Namespaces::ReferenceData::Locations::Airports.new(client) end |
#get(params = {}) ⇒ Amadeus::Response
Returns a list of airports and cities matching a given keyword.
61 62 63 |
# File 'lib/amadeus/namespaces/reference_data/locations.rb', line 61 def get(params = {}) client.get('/v1/reference-data/locations', params) end |
#point_of_interest(location_id) ⇒ Amadeus::Namespaces::ReferenceData::Locations::PointOfInterest
The namespace for the Point Of Interest API:
41 42 43 44 45 |
# File 'lib/amadeus/namespaces/reference_data/locations.rb', line 41 def point_of_interest(location_id) Amadeus::Namespaces::ReferenceData::Locations::PointOfInterest.new( client, location_id ) end |
#points_of_interest ⇒ Amadeus::Namespaces::ReferenceData::Locations::PointsOfInterest
The namespace for the Points Of Interest API:
31 32 33 |
# File 'lib/amadeus/namespaces/reference_data/locations.rb', line 31 def points_of_interest Amadeus::Namespaces::ReferenceData::Locations::PointsOfInterest.new(client) end |