Class: Retailigence::Location

Inherits:
Base
  • Object
show all
Defined in:
lib/retailigence/location.rb

Class Method Summary collapse

Methods inherited from Base

apikey, apikey=, perform_graph_request

Class Method Details

.search(params = {}) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/retailigence/location.rb', line 5

def self.search(params={})
  params = {latitude: 27.6,
    longitude: -82.5,
    range: 40,
    units: 'k'}.merge!(params)
    
  perform_graph_request('locations', params)
end