Sha256: a7359ecc7642d4cbaee8f51a9add4bb35bb45cd08931b564629de803b4edfee3

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 Bytes

Contents

module FullContact
  class Client
    module Company
      # Returns extended information for a given company (email, phone, twitter or facebook)
      #
      def company(options={}, faraday_options={})
        url = "company/lookup"
        if options[:companyName]
          url = "company/search"
        end
        response = get(url, options, false, faraday_options)
        format.to_s.downcase == 'xml' ? response['response'] : response
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
fullcontact-api-ruby-0.1.0 lib/fullcontact/client/company.rb
fullcontact-0.18.0 lib/fullcontact/client/company.rb