Class: Yelp::Neighborhood::Request::GeoPoint
- Defined in:
- lib/yelp/neighborhood/request/geo_point.rb
Overview
Describes a request to search for the name of a neighborhood at a specific geo-point location.
Instance Attribute Summary collapse
-
#latitude ⇒ Object
readonly
latitude of geo-point for which a neighborhood name is desired.
-
#longitude ⇒ Object
readonly
longitude of geo-point for which a neighborhood name is desired.
Attributes inherited from Request
#compress_response, #response_format, #yws_id
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from Request
Methods inherited from Record
Constructor Details
This class inherits a constructor from Yelp::Request
Instance Attribute Details
#latitude ⇒ Object (readonly)
latitude of geo-point for which a neighborhood name is desired
11 12 13 |
# File 'lib/yelp/neighborhood/request/geo_point.rb', line 11 def latitude @latitude end |
#longitude ⇒ Object (readonly)
longitude of geo-point for which a neighborhood name is desired
14 15 16 |
# File 'lib/yelp/neighborhood/request/geo_point.rb', line 14 def longitude @longitude end |
Instance Method Details
#to_yelp_params ⇒ Object
16 17 18 19 |
# File 'lib/yelp/neighborhood/request/geo_point.rb', line 16 def to_yelp_params super.merge(:lat => latitude, :long => longitude) end |