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
fullcontacter-0.3.2 lib/fullcontact/api.rb
fullcontact-0.3.1 lib/fullcontact/api.rb
fullcontact-0.3.0 lib/fullcontact/api.rb
fullcontact-0.2.0 lib/fullcontact/api.rb
fullcontact-0.1.4 lib/fullcontact/api.rb
fullcontact-0.1.3 lib/fullcontact/api.rb