Sha256: db6feb193bb30e0331ebce4738d86ea6858cefb510d522e1e071a4453aeb5feb

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 Bytes

Contents

require 'oahu/core_ext/hash'
require 'oahu/client'
require 'oahu/config'

module Oahu
  extend Config
  class << self
    # Alias for Oahu::Client.new
    #
    # @return [Oahu::Client]
    def new(options={})
      Oahu::Client.new(options)
    end

    # Delegate to Oahu::Client
    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

1 entries across 1 versions & 1 rubygems

Version Path
oahu-0.0.1 lib/oahu.rb