Class: YahooLocal::Client
- Inherits:
-
Object
- Object
- YahooLocal::Client
- Includes:
- HTTParty
- Defined in:
- lib/yahoo_local/client.rb
Instance Attribute Summary collapse
-
#appid ⇒ Object
readonly
Returns the value of attribute appid.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #search(options = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
10 11 12 |
# File 'lib/yahoo_local/client.rb', line 10 def initialize(={}) @appid = [:appid] || YahooLocal.appid end |
Instance Attribute Details
#appid ⇒ Object (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(={}) response = self.class.get('/localSearch', :query => .merge(self.)) end |