Sha256: 88fdc8e28ad9f786681d71271e38e1719b53ba04ad441acd51435f6f59d3f0cd

Contents?: true

Size: 604 Bytes

Versions: 3

Compression:

Stored size: 604 Bytes

Contents

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

module Evrythng
  extend Configuration

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

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
evrythng-0.0.3 lib/evrythng.rb
evrythng-0.0.2 lib/evrythng.rb
evrythng-0.0.1 lib/evrythng.rb