Class: Yahoo::Api

Inherits:
Object
  • Object
show all
Defined in:
lib/yahoo/api.rb,
lib/yahoo/api/auction.rb,
lib/yahoo/api/version.rb,
lib/yahoo/api/shopping.rb

Defined Under Namespace

Classes: Auction, Shopping

Constant Summary collapse

VERSION =
"0.1.2"
@@options =
{}

Class Method Summary collapse

Class Method Details

.configure {|@@options| ... } ⇒ Object

Yields:

Raises:

  • (ArgumentError)


23
24
25
26
# File 'lib/yahoo/api.rb', line 23

def configure(&proc)
  raise ArgumentError, "Block is required." unless block_given?
  yield @@options
end

.optionsObject



19
20
21
# File 'lib/yahoo/api.rb', line 19

def options
  @@options
end