Class: ClioClient::Api::User
Instance Attribute Summary
Attributes inherited from Base
#session
Instance Method Summary
collapse
Methods included from Findable
#find
Methods included from Listable
#first, #list, #next_page
Methods inherited from Base
#initialize
Instance Method Details
#avatar(id) ⇒ Object
8
9
10
|
# File 'lib/clio_client/api/user.rb', line 8
def avatar(id)
session.get("#{end_point_url}/#{id}/avatar")
end
|
#who_am_i ⇒ Object
12
13
14
15
16
|
# File 'lib/clio_client/api/user.rb', line 12
def who_am_i
resp = session.get("#{end_point_url}/who_am_i")
[ClioClient::Account.new(resp["account"], session),
ClioClient::User.new(resp["user"], session)]
end
|