Class: Amadeus::Namespaces::ReferenceData::Locations::PointOfInterest
- Inherits:
-
Client::Decorator
- Object
- Client::Decorator
- Amadeus::Namespaces::ReferenceData::Locations::PointOfInterest
- Defined in:
- lib/amadeus/namespaces/reference_data/locations/point_of_interest.rb
Overview
Instance Attribute Summary collapse
-
#poi_location_id ⇒ Object
readonly
the Location ID.
Instance Method Summary collapse
-
#get(params = {}) ⇒ Amadeus::Response
Returns details for a specific poi.
-
#initialize(client, poi_location_id = nil) ⇒ PointOfInterest
constructor
Initialize this namespaced client with an Client instance and an optional Location ID.
Constructor Details
#initialize(client, poi_location_id = nil) ⇒ PointOfInterest
Initialize this namespaced client with an Client instance and an optional Location ID
25 26 27 28 |
# File 'lib/amadeus/namespaces/reference_data/locations/point_of_interest.rb', line 25 def initialize(client, poi_location_id = nil) super(client) @poi_location_id = poi_location_id end |
Instance Attribute Details
#poi_location_id ⇒ Object (readonly)
the Location ID
17 18 19 |
# File 'lib/amadeus/namespaces/reference_data/locations/point_of_interest.rb', line 17 def poi_location_id @poi_location_id end |
Instance Method Details
#get(params = {}) ⇒ Amadeus::Response
Returns details for a specific poi
37 38 39 |
# File 'lib/amadeus/namespaces/reference_data/locations/point_of_interest.rb', line 37 def get(params = {}) client.get("/v1/reference-data/locations/pois/#{@poi_location_id}", params) end |