Sha256: 57fa54c786fbc5350124bda07ee5fbd5ffcd323866c91ef38e1e7e0d95c63691

Contents?: true

Size: 690 Bytes

Versions: 3

Compression:

Stored size: 690 Bytes

Contents

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

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

3 entries across 3 versions & 1 rubygems

Version Path
fullcontact-0.7.0 lib/fullcontact.rb
fullcontact-0.6.1 lib/fullcontact.rb
fullcontact-0.6.0 lib/fullcontact.rb