Module: NYCGeoClient::Client::Intersection
- Included in:
- NYCGeoClient::Client
- Defined in:
- lib/nyc_geo_client/client/intersection.rb
Overview
Defines methods related to branches
Instance Method Summary collapse
-
#intersection(cross_street_one, cross_street_two, borough, extra = {}) ⇒ Hashie::Mash
Returns information about a point defined by two cross streets.
Instance Method Details
#intersection(cross_street_one, cross_street_two, borough, extra = {}) ⇒ Hashie::Mash
Returns information about a point defined by two cross streets.
18 19 20 21 22 23 24 25 |
# File 'lib/nyc_geo_client/client/intersection.rb', line 18 def intersection(cross_street_one, cross_street_two, borough, extra = {}) = { crossStreetOne: cross_street_one, crossStreetTwo: cross_street_two, borough: borough }.merge(extra) get(intersection_path, ) end |