Sha256: edeaa1727f76886be54a6eecd88927ec7e5643508fa71b4e9e595617a45f2390

Contents?: true

Size: 529 Bytes

Versions: 1

Compression:

Stored size: 529 Bytes

Contents

require 'evrythng/authentication'
require 'evrythng/configuration'
require 'evrythng/connection'
require 'evrythng/request'

module Evrythng
  # @private
  class API
    include Connection
    include Request
    include Authentication

    # @private
    attr_accessor *Configuration::VALID_OPTIONS_KEYS

    # Creates a new API
    def initialize(options={})
      options = Evrythng.options.merge(options)
      Configuration::VALID_OPTIONS_KEYS.each do |key|
        send("#{key}=", options[key])
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evrythng-0.0.5 lib/evrythng/api.rb