Class: Yelp::V1::Review::Request::GeoPoint
- Inherits:
-
Base
- Object
- Record
- Yelp::V1::Request
- Base
- Yelp::V1::Review::Request::GeoPoint
- Defined in:
- lib/yelped/v1/review/request/geo_point.rb
Overview
Describes a request to search for business reviews for businesses near a specific geo-point and radius around that point.
Instance Attribute Summary collapse
-
#latitude ⇒ Object
readonly
latitude of geo-point to search near.
-
#longitude ⇒ Object
readonly
longitude of geo-point to search near.
-
#radius ⇒ Object
readonly
radius to use while searching around specified geo-point.
Attributes inherited from Base
#business_count, #category, #term
Attributes inherited from Yelp::V1::Request
#compress_response, #response_format, #yws_id
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from Yelp::V1::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 to search near
12 13 14 |
# File 'lib/yelped/v1/review/request/geo_point.rb', line 12 def latitude @latitude end |
#longitude ⇒ Object (readonly)
longitude of geo-point to search near
15 16 17 |
# File 'lib/yelped/v1/review/request/geo_point.rb', line 15 def longitude @longitude end |
#radius ⇒ Object (readonly)
radius to use while searching around specified geo-point. default value is 1, maximum value is 25.
19 20 21 |
# File 'lib/yelped/v1/review/request/geo_point.rb', line 19 def radius @radius end |
Instance Method Details
#to_yelp_params ⇒ Object
21 22 23 24 25 |
# File 'lib/yelped/v1/review/request/geo_point.rb', line 21 def to_yelp_params super.merge(:lat => latitude, :long => longitude, :radius => radius) end |