Module: Toppr

Defined in:
lib/toppr.rb,
lib/toppr/client.rb,
lib/toppr/version.rb,
lib/toppr/client/user.rb,
lib/toppr/client/wallpaper.rb

Defined Under Namespace

Classes: Client

Constant Summary collapse

VERSION =
'0.8.1'

Class Method Summary collapse

Class Method Details

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



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

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

.newObject



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

def new
  Toppr::Client.new
end

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

Returns:

  • (Boolean)


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

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