Module: FullContact

Extended by:
Configuration
Defined in:
lib/fullcontact.rb,
lib/fullcontact/api.rb,
lib/fullcontact/error.rb,
lib/fullcontact/client.rb,
lib/fullcontact/version.rb,
lib/fullcontact/request.rb,
lib/fullcontact/connection.rb,
lib/fullcontact/configuration.rb,
lib/fullcontact/client/person.rb,
lib/fullcontact/client/company.rb

Defined Under Namespace

Modules: Configuration, Connection, Request Classes: API, BadGateway, BadRequest, Client, Error, Forbidden, InternalServerError, Invalid, NotFound, RateLimited, ServiceUnavailable, Unauthorized

Constant Summary

VERSION =
'0.11.0'

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_GATEWAY, Configuration::DEFAULT_PROXY, Configuration::DEFAULT_SKIP_RUBYIZE, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_FORMATS, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.client(options = {}) ⇒ FullContact::Client

Alias for FullContact::Client.new



15
16
17
# File 'lib/fullcontact.rb', line 15

def self.client(options={})
  FullContact::Client.new(options)
end

.method_missing(method, *args, &block) ⇒ Object

Delegate to FullContact::Client



20
21
22
23
# File 'lib/fullcontact.rb', line 20

def self.method_missing(method, *args, &block)
  return super unless client.respond_to?(method)
  client.send(method, *args, &block)
end

.respond_to?(method, include_private = false) ⇒ Boolean



25
26
27
# File 'lib/fullcontact.rb', line 25

def self.respond_to?(method, include_private = false)
  client.respond_to?(method, include_private) || super(method, include_private)
end