Sha256: 37f6f61aa51eccd8014461bf3fd32f03498245f0055eb1820daa86edd37ac16f

Contents?: true

Size: 577 Bytes

Versions: 3

Compression:

Stored size: 577 Bytes

Contents

module FullContact
  class Client
    module Person
      # Returns extended information for a given person (email, phone, twitter or facebook)
      #
       def person(options={}, faraday_options={})
         if options.is_a?(String)
           warn "[DEPRECATION] supplying an email address directly is deprecated.  Please use {email: #{options}} instead."
           options = {:email => options}
         end
        response = get('person', options, false, faraday_options)
        format.to_s.downcase == 'xml' ? response['person'] : response
      end
  	end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fullcontact-0.5.0 lib/fullcontact/client/person.rb
fullcontact-0.4.4 lib/fullcontact/client/person.rb
fullcontact-0.4.1 lib/fullcontact/client/person.rb