Module: Bestsellers

Defined in:
lib/nytimes_bestsellers.rb,
lib/nytimes_bestsellers/client.rb,
lib/nytimes_bestsellers/version.rb,
lib/nytimes_bestsellers/configuration.rb

Defined Under Namespace

Modules: Configuration Classes: List

Constant Summary collapse

VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.method_missing(method, *args, &block) ⇒ Object



10
11
12
13
# File 'lib/nytimes_bestsellers.rb', line 10

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.newObject



6
7
8
# File 'lib/nytimes_bestsellers.rb', line 6

def new
  @list ||= Bestsellers::List.new
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/nytimes_bestsellers.rb', line 15

def respond_to?(method, include_private=false)
  new.respond_to?(method, include_private) || super(method, include_private)
end