Module: Mog

Defined in:
lib/mog.rb,
lib/mog/client.rb,
lib/mog/version.rb

Defined Under Namespace

Classes: Client

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.client(options = {}) ⇒ Mog::Client

Alias for Mog::Client.new

Returns:



7
8
9
# File 'lib/mog.rb', line 7

def self.client(options={})
  Mog::Client.new(options)
end

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

Delegate to Mog::Client



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

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

.new(options = {}) ⇒ Mog::Client

Alias for Mog::Client.new

Returns:



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

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

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

Returns:

  • (Boolean)


24
25
26
# File 'lib/mog.rb', line 24

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