Sha256: 3c24bbdb7c4eeea0e7949394d1fc94efe12e20d0b9e99354feef40899a324555

Contents?: true

Size: 765 Bytes

Versions: 6

Compression:

Stored size: 765 Bytes

Contents

require 'faraday'
require 'faraday_middleware'
require 'fullcontact/ext/hash/to_snake_keys'
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 & 2 rubygems

Version Path
fullcontact-api-ruby-0.1.0 lib/fullcontact.rb
fullcontact-0.18.0 lib/fullcontact.rb
fullcontact-0.17.0 lib/fullcontact.rb
fullcontact-0.16.0 lib/fullcontact.rb
fullcontact-0.15.0 lib/fullcontact.rb
fullcontact-0.14.0 lib/fullcontact.rb