Module: YahooLocal
- Defined in:
- lib/yahoo_local.rb,
lib/yahoo_local/client.rb
Defined Under Namespace
Classes: Client
Class Attribute Summary collapse
-
.appid ⇒ Object
Returns the value of attribute appid.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
create config/initializers/yahoo_local.rb.
Class Attribute Details
.appid ⇒ Object
Returns the value of attribute appid.
31 32 33 |
# File 'lib/yahoo_local.rb', line 31 def appid @appid end |
Class Method Details
.configure {|_self| ... } ⇒ Object
create config/initializers/yahoo_local.rb
YahooLocal.configure do |config|
config.appid = 'appid'
end client = YahooLocal::Client.new
or
YahooLocal.appid = ‘appid’
or
YahooLocal::Client.new(:appid => ‘appid’)
25 26 27 28 |
# File 'lib/yahoo_local.rb', line 25 def self.configure yield self true end |