Sha256: 678beaadb99ed36fd2725ea08842c31a9950aab43a434c46ffdc2c11854d360a

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

require File.expand_path('../connection', __FILE__)
require File.expand_path('../request', __FILE__)

module Sambatech
  # @private
  class API
    # @private
    attr_accessor *Configuration::VALID_OPTIONS_KEYS

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

    include Connection
    include Request
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sambatech-0.0.1 lib/sambatech/api.rb