Module: NYCGeoClient::Client::Place
- Included in:
- NYCGeoClient::Client
- Defined in:
- lib/nyc_geo_client/client/place.rb
Overview
Defines methods related to branches
Instance Method Summary collapse
-
#place(name:, borough: nil, zip: nil) ⇒ Hashie::Mash
Returns address information using a well-known place name as input.
Instance Method Details
#place(name:, borough: nil, zip: nil) ⇒ Hashie::Mash
Returns address information using a well-known place name as input.
14 15 16 17 18 19 20 21 |
# File 'lib/nyc_geo_client/client/place.rb', line 14 def place(name:, borough: nil, zip: nil) = { name: name, borough: borough, zip: zip }.reject { |k, v| v.nil? } get(place_path, ) end |