Class: Amadeus::Namespaces::Safety

Inherits:
Client::Decorator
  • Object
show all
Defined in:
lib/amadeus/namespaces/safety.rb,
lib/amadeus/namespaces/safety/safety_rated_location.rb,
lib/amadeus/namespaces/safety/safety_rated_locations.rb,
lib/amadeus/namespaces/safety/safety_rated_locations/by_square.rb

Overview

A namespaced client for the /v1/safety endpoints

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.safety

Defined Under Namespace

Classes: SafetyRatedLocation, SafetyRatedLocations

Instance Method Summary collapse

Instance Method Details

#safety_rated_location(location_id) ⇒ Amadeus::Namespaces::Safety::SafetyRetedLocation

Examples:

amadeus.safety.safety_rated_location

Returns:

  • (Amadeus::Namespaces::Safety::SafetyRetedLocation)


29
30
31
# File 'lib/amadeus/namespaces/safety.rb', line 29

def safety_rated_location(location_id)
  Amadeus::Namespaces::Safety::SafetyRatedLocation.new(client, location_id)
end

#safety_rated_locationsAmadeus::Namespaces::Safety::SafetyRetedLocations

The namespace for the Safety APIs:

Examples:

amadeus.safety.safety_rated_locations

Returns:

  • (Amadeus::Namespaces::Safety::SafetyRetedLocations)


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

def safety_rated_locations
  Amadeus::Namespaces::Safety::SafetyRatedLocations.new(client)
end