Class: Retailigence::Retailer

Inherits:
Base
  • Object
show all
Defined in:
lib/retailigence/retailer.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/retailer.rb', line 5

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