Sha256: 90a3834b4b84115999ac48ae502794104e468672576f36153306ea05f8cb6e67

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 Bytes

Contents

require 'evrythng/api'
require 'evrythng/client'
require 'evrythng/configuration'
require 'evrythng/error'
require 'evrythng/search'

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

    # Delegate to evrythng::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
evrythng-0.0.5 lib/evrythng.rb