Class: Yelp::V1::Neighborhood::Request::GeoPoint
- Defined in:
- lib/yelped/v1/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::V1::Request
Instance Attribute Details
#latitude ⇒ Object (readonly)
latitude of geo-point for which a neighborhood name is desired
12 13 14 |
# File 'lib/yelped/v1/neighborhood/request/geo_point.rb', line 12 def latitude @latitude end |
#longitude ⇒ Object (readonly)
longitude of geo-point for which a neighborhood name is desired
15 16 17 |
# File 'lib/yelped/v1/neighborhood/request/geo_point.rb', line 15 def longitude @longitude end |
Instance Method Details
#to_yelp_params ⇒ Object
17 18 19 20 |
# File 'lib/yelped/v1/neighborhood/request/geo_point.rb', line 17 def to_yelp_params super.merge(:lat => latitude, :long => longitude) end |