Module: FullContact

Extended by:
Configuration
Defined in:
lib/fullcontact.rb,
lib/fullcontact/api.rb,
lib/fullcontact/error.rb,
lib/fullcontact/client.rb,
lib/fullcontact/request.rb,
lib/fullcontact/version.rb,
lib/fullcontact/connection.rb,
lib/fullcontact/client/person.rb,
lib/fullcontact/configuration.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 collapse

VERSION =
'0.18.0'

Constants included from Configuration

Configuration::AUTH_HEADER_NAME, Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_KEY, Configuration::DEFAULT_AUTH_TYPE, Configuration::DEFAULT_ENDPOINT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_GATEWAY, Configuration::DEFAULT_INCLUDE_HEADERS_IN_RESPONSE, 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

Returns:



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

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

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

Delegate to FullContact::Client



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

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

Returns:

  • (Boolean)


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

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