Class: Amadeus::Namespaces::Safety::SafetyRatedLocations
- Inherits:
-
Client::Decorator
- Object
- Client::Decorator
- Amadeus::Namespaces::Safety::SafetyRatedLocations
- Defined in:
- lib/amadeus/namespaces/safety/safety_rated_locations.rb,
lib/amadeus/namespaces/safety/safety_rated_locations/by_square.rb
Overview
Defined Under Namespace
Classes: BySquare
Instance Method Summary collapse
-
#by_square ⇒ Amadeus::Namespaces::Safety::SafetyRatedLocations
The namespace for the Safe Place API:.
-
#get(params = {}) ⇒ Amadeus::Response
Returns a list of relevant safety information near to a given point.
Instance Method Details
#by_square ⇒ Amadeus::Namespaces::Safety::SafetyRatedLocations
The namespace for the Safe Place API:
21 22 23 |
# File 'lib/amadeus/namespaces/safety/safety_rated_locations.rb', line 21 def by_square Amadeus::Namespaces::Safety::SafetyRatedLocations::BySquare.new(client) end |
#get(params = {}) ⇒ Amadeus::Response
Returns a list of relevant safety information near to a given point.
40 41 42 |
# File 'lib/amadeus/namespaces/safety/safety_rated_locations.rb', line 40 def get(params = {}) client.get('/v1/safety/safety-rated-locations', params) end |