Sha256: b0d8de2ca88a35fbab406fb74b6be53a99d2f62ad005aa854405a8f7ad01046e

Contents?: true

Size: 560 Bytes

Versions: 2

Compression:

Stored size: 560 Bytes

Contents

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

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

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

    include Connection
    include Request
    include Authentication
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smoodit-0.0.2 lib/smoodit/api.rb
smoodit-0.0.1 lib/smoodit/api.rb