Module: YahooLocal

Defined in:
lib/yahoo_local.rb,
lib/yahoo_local/client.rb

Defined Under Namespace

Classes: Client

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.appidObject

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’)

Yields:

  • (_self)

Yield Parameters:

  • _self (YahooLocal)

    the object that the method was called on



25
26
27
28
# File 'lib/yahoo_local.rb', line 25

def self.configure
  yield self
  true
end