Module: Stagehand

Defined in:
lib/stagehand.rb,
lib/stagehand/client.rb,
lib/stagehand/version.rb,
lib/stagehand/client/user.rb,
lib/stagehand/client/oauth.rb

Defined Under Namespace

Modules: Rack Classes: Client, Config, Railtie

Constant Summary collapse

VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.configObject



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

def config
  @@config ||= Config.new
end

.configure {|self.config| ... } ⇒ Object

Yields:



18
19
20
# File 'lib/stagehand.rb', line 18

def configure
  yield self.config
end

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

Delegate to Stagehand::Client



28
29
30
31
# File 'lib/stagehand.rb', line 28

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

.new(options = {}) ⇒ Object

return Stagehand::Client



23
24
25
# File 'lib/stagehand.rb', line 23

def new(options={})
  Stagehand::Client.new(options)
end