Class: YahooLocal::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/yahoo_local/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



10
11
12
# File 'lib/yahoo_local/client.rb', line 10

def initialize(options={})
  @appid = options[:appid] || YahooLocal.appid
end

Instance Attribute Details

#appidObject (readonly)

Returns the value of attribute appid.



8
9
10
# File 'lib/yahoo_local/client.rb', line 8

def appid
  @appid
end

Instance Method Details

#search(options = {}) ⇒ Object



14
15
16
# File 'lib/yahoo_local/client.rb', line 14

def search(options={})
  response = self.class.get('/localSearch', :query => options.merge(self.default_options))
end