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

Inherits:
Base show all
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

Attributes inherited from Request

#compress_response, #response_format, #yws_id

Instance Method Summary collapse

Methods inherited from Base

#base_url

Methods inherited from Request

#initialize

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from Yelp::Request

Instance Attribute Details

#latitudeObject (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

#longitudeObject (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_paramsObject



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