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

Defined Under Namespace

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

Constant Summary

VERSION =
"0.6.1"

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_USER_AGENT, Configuration::VALID_FORMATS, Configuration::VALID_OPTIONS_KEYS

Class Method Summary (collapse)

Methods included from Configuration

configure, extended, options, reset

Class Method Details

+ (FullContact::Client) client(options = {})

Alias for FullContact::Client.new



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

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

+ (Object) method_missing(method, *args, &block)

Delegate to FullContact::Client



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

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

+ (Boolean) respond_to?(method, include_private = false)



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

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