Skip to content
This repository was archived by the owner on Aug 20, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/fullcontact/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ class Client < API
# Client-namespaced.
require 'fullcontact/client/person'
require 'fullcontact/client/company'
require 'fullcontact/client/stats'

alias :api_endpoint :endpoint

include FullContact::Client::Person
include FullContact::Client::Company
include FullContact::Client::Stats
end
end
13 changes: 13 additions & 0 deletions lib/fullcontact/client/stats.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module FullContact
class Client
module Stats
# Returns stats for a given user accout
#
def stats(options={}, faraday_options={})
url = "stats"
response = get(url, options, false, faraday_options)
format.to_s.downcase == 'xml' ? response['response'] : response
end
end
end
end