Module: Amadeus::Namespaces

Included in:
Client
Defined in:
lib/amadeus/namespaces/core.rb,
lib/amadeus/namespaces/safety.rb,
lib/amadeus/namespaces/travel.rb,
lib/amadeus/namespaces/airport.rb,
lib/amadeus/namespaces/booking.rb,
lib/amadeus/namespaces/shopping.rb,
lib/amadeus/namespaces/analytics.rb,
lib/amadeus/namespaces/e_reputation.rb,
lib/amadeus/namespaces/reference_data.rb,
lib/amadeus/namespaces/travel/analytics.rb,
lib/amadeus/namespaces/travel/predictions.rb,
lib/amadeus/namespaces/airport/predictions.rb,
lib/amadeus/namespaces/reference_data/urls.rb,
lib/amadeus/namespaces/shopping/hotel_offer.rb,
lib/amadeus/namespaces/shopping/flight_dates.rb,
lib/amadeus/namespaces/shopping/hotel_offers.rb,
lib/amadeus/namespaces/booking/hotel_bookings.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/airport/predictions/on_time.rb,
lib/amadeus/namespaces/safety/safety_rated_location.rb,
lib/amadeus/namespaces/shopping/flight_destinations.rb,
lib/amadeus/namespaces/travel/analytics/air_traffic.rb,
lib/amadeus/namespaces/e_reputation/hotel_sentiments.rb,
lib/amadeus/namespaces/safety/safety_rated_locations.rb,
lib/amadeus/namespaces/shopping/flight_offers_search.rb,
lib/amadeus/namespaces/shopping/hotel_offers_by_hotel.rb,
lib/amadeus/namespaces/travel/predictions/flight_delay.rb,
lib/amadeus/namespaces/travel/predictions/trip_purpose.rb,
lib/amadeus/namespaces/analytics/itinerary_price_metrics.rb,
lib/amadeus/namespaces/reference_data/locations/airports.rb,
lib/amadeus/namespaces/reference_data/urls/checkin_links.rb,
lib/amadeus/namespaces/travel/analytics/air_traffic/booked.rb,
lib/amadeus/namespaces/travel/analytics/air_traffic/traveled.rb,
lib/amadeus/namespaces/safety/safety_rated_locations/by_square.rb,
lib/amadeus/namespaces/shopping/flight_offers_search/prediction.rb,
lib/amadeus/namespaces/reference_data/locations/point_of_interest.rb,
lib/amadeus/namespaces/reference_data/locations/points_of_interest.rb,
lib/amadeus/namespaces/travel/analytics/air_traffic/busiest_period.rb,
lib/amadeus/namespaces/reference_data/locations/points_of_interest/by_square.rb

Overview

The namespaces that allow this API to map the paths of the API to similar calls on the SDK

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.reference_data
amadeus.shopping
amadeus.travel

Defined Under Namespace

Classes: Airport, Analytics, Booking, EReputation, ReferenceData, Safety, Shopping, Travel

Instance Method Summary collapse

Instance Method Details

#airportAmadeus::Namespaces::Airport

The namespace for the Airport APIs:

Examples:

Some of the further namespaces available

amadeus.airport.predictions

Returns:



77
78
79
# File 'lib/amadeus/namespaces/core.rb', line 77

def airport
  Airport.new(self)
end

#analyticsAmadeus::Namespaces::Analytics

The namespace for the Analytics related APIs:

Examples:

Some of the further namespaces available

amadeus.analytics.itinerary_price_metrics

Returns:



97
98
99
# File 'lib/amadeus/namespaces/core.rb', line 97

def analytics
  Analytics.new(self)
end

#bookingAmadeus::Namespaces::Booking

The namespace for the booking APIs:

Examples:

Some of the further namespaces available

amadeus.booking.hotel_bookings

Returns:



46
47
48
# File 'lib/amadeus/namespaces/core.rb', line 46

def booking
  Booking.new(self)
end

#e_reputationAmadeus::Namespaces::EReputation

The namespace for the E Reputation APIs:

Examples:

Some of the further namespaces available

amadeus.e_reputation.hotel_sentiments

Returns:



67
68
69
# File 'lib/amadeus/namespaces/core.rb', line 67

def e_reputation
  EReputation.new(self)
end

#reference_dataAmadeus::Namespaces::ReferenceData

The namespace for the checkin links and locations APIs:

Examples:

Some of the further namespaces available

amadeus.reference_data.urls.checkin_links
amadeus.reference_data.locations

Returns:



22
23
24
# File 'lib/amadeus/namespaces/core.rb', line 22

def reference_data
  ReferenceData.new(self)
end

#safetyAmadeus::Namespaces::Safety

The namespace for the Safety related APIs:

Examples:

Some of the further namespaces available

amadeus.safety.safety_rated_locations

Returns:



87
88
89
# File 'lib/amadeus/namespaces/core.rb', line 87

def safety
  Safety.new(self)
end

#shoppingAmadeus::Namespaces::Shopping

The namespace for the shopping APIs:

Examples:

Some of the further namespaces available

amadeus.shopping.flight_destinations
amadeus.shopping.flight_offers
amadeus.shopping.flight_dates
amadeus.shopping.hotel_offers
amadeus.shopping.hotels

Returns:



36
37
38
# File 'lib/amadeus/namespaces/core.rb', line 36

def shopping
  Shopping.new(self)
end

#travelAmadeus::Namespaces::Travel

The namespace for the travel analytics APIs:

Examples:

Some of the further namespaces available

amadeus.travel.analytics.air_traffic
amadeus.travel.analytics.fare_searches

Returns:



57
58
59
# File 'lib/amadeus/namespaces/core.rb', line 57

def travel
  Travel.new(self)
end