Sha256: fa82ce1a1aad09bd598544fdcfb13f394a987c64c3838d2c85c66c6239b4372c

Contents?: true

Size: 720 Bytes

Versions: 6

Compression:

Stored size: 720 Bytes

Contents

require 'faraday'
require 'faraday_middleware'
require 'fullcontact/error'
require 'fullcontact/configuration'
require 'fullcontact/api'
require 'fullcontact/client'
require 'fullcontact/version'

module FullContact
  extend Configuration

  # Alias for FullContact::Client.new
  #
  # @return [FullContact::Client]
  def self.client(options={})
    FullContact::Client.new(options)
  end

  # Delegate to FullContact::Client
  def self.method_missing(method, *args, &block)
    return super unless client.respond_to?(method)
    client.send(method, *args, &block)
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fullcontact-0.13.0 lib/fullcontact.rb
fullcontact-0.12.0 lib/fullcontact.rb
fullcontact-0.11.0 lib/fullcontact.rb
fullcontact-0.10.0 lib/fullcontact.rb
fullcontact-0.9.0 lib/fullcontact.rb
fullcontact-0.8.2 lib/fullcontact.rb