Class: Yelp::V1::Neighborhood::Request::GeoPoint

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

Attributes inherited from Request

#response_format, #yws_id

Instance Method Summary collapse

Methods inherited from Base

#base_url

Methods inherited from 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 for which a neighborhood name is desired


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

def latitude
  @latitude
end

#longitudeObject (readonly)

longitude of geo-point for which a neighborhood name is desired


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

def longitude
  @longitude
end

Instance Method Details

#to_yelp_paramsObject


17
18
19
20
# File 'lib/yelpster/v1/neighborhood/request/geo_point.rb', line 17

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