Sha256: af6c2926658fa90ef05a0f9521c2fbaa2aeeee828216496450706e2bfeb48057

Contents?: true

Size: 447 Bytes

Versions: 26

Compression:

Stored size: 447 Bytes

Contents

require 'fullcontact/connection'
require 'fullcontact/request'

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

    # Creates a new API
    def initialize(options={})
      options = FullContact.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

26 entries across 26 versions & 3 rubygems

Version Path
fullcontact-api-ruby-0.1.0 lib/fullcontact/api.rb
fullcontact-0.18.0 lib/fullcontact/api.rb
fullcontact-0.17.0 lib/fullcontact/api.rb
fullcontact-0.16.0 lib/fullcontact/api.rb
fullcontact-0.15.0 lib/fullcontact/api.rb
fullcontact-0.14.0 lib/fullcontact/api.rb
fullcontact-0.13.0 lib/fullcontact/api.rb
fullcontact-0.12.0 lib/fullcontact/api.rb
fullcontact-0.11.0 lib/fullcontact/api.rb
fullcontact-0.10.0 lib/fullcontact/api.rb
fullcontact-0.9.0 lib/fullcontact/api.rb
fullcontact-0.8.2 lib/fullcontact/api.rb
fullcontact-0.7.0 lib/fullcontact/api.rb
fullcontact-0.6.1 lib/fullcontact/api.rb
fullcontact-0.6.0 lib/fullcontact/api.rb
fullcontact-0.5.0 lib/fullcontact/api.rb
fullcontact-0.4.4 lib/fullcontact/api.rb
fullcontact-0.4.1 lib/fullcontact/api.rb
fullcontact-0.3.3 lib/fullcontact/api.rb
fullcontact-0.3.2 lib/fullcontact/api.rb