Sha256: f85450b7141075d46c311f5f2a5b8398cefbd0938230ff1207a64e961d158391

Contents?: true

Size: 590 Bytes

Versions: 6

Compression:

Stored size: 590 Bytes

Contents

require 'lelylan/configuration'
require 'lelylan/client'
require 'lelylan/error'
require 'oauth2'

module Lelylan
  extend Configuration

  class << self

    # Alias for Lelylan::Client.new
    def new(options={})
      Lelylan::Client.new(options)
    end

    # Delegate to Lelylan::Client.new
    def method_missing(method, *args, &block)
      return super unless new.respond_to?(method)
      new.send(method, *args, &block)
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lelylan-rb-0.1.0 lib/lelylan.rb
lelylan-rb-0.0.5 lib/lelylan.rb
lelylan-rb-0.0.4 lib/lelylan.rb
lelylan-rb-0.0.3 lib/lelylan.rb
lelylan-rb-0.0.2 lib/lelylan.rb
lelylan-rb-0.0.1 lib/lelylan.rb