Class: Yelp::V1::Review::Request::GeoPoint

Inherits:
Base show all
Defined in:
lib/yelpster/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

Attributes inherited from Base

#business_count, #category, #term

Attributes inherited from Yelp::V1::Request

#response_format, #yws_id

Instance Method Summary collapse

Methods inherited from Base

#base_url

Methods inherited from Yelp::V1::Request

#initialize, #pull_results

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from Yelp::V1::Request

Instance Attribute Details

#latitudeObject (readonly)

latitude of geo-point to search near


12
13
14
# File 'lib/yelpster/v1/review/request/geo_point.rb', line 12

def latitude
  @latitude
end

#longitudeObject (readonly)

longitude of geo-point to search near


15
16
17
# File 'lib/yelpster/v1/review/request/geo_point.rb', line 15

def longitude
  @longitude
end

#radiusObject (readonly)

radius to use while searching around specified geo-point. default value is 1, maximum value is 25.


19
20
21
# File 'lib/yelpster/v1/review/request/geo_point.rb', line 19

def radius
  @radius
end

Instance Method Details

#to_yelp_paramsObject


21
22
23
24
25
# File 'lib/yelpster/v1/review/request/geo_point.rb', line 21

def to_yelp_params
  super.merge(:lat => latitude,
              :long => longitude,
              :radius => radius)
end