class ClioClient::Api::User

Public Instance Methods

avatar(id) click to toggle source
# File lib/clio_client/api/user.rb, line 8
def avatar(id)
  session.get("#{end_point_url}/#{id}/avatar")
end
who_am_i() click to toggle source
# 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

Private Instance Methods

data_klass(*args) click to toggle source
# File lib/clio_client/api/user.rb, line 21
def data_klass(*args)
  ClioClient::User
end
end_point_url() click to toggle source
# File lib/clio_client/api/user.rb, line 25
def end_point_url;     'users';  end
plural_resource() click to toggle source
# File lib/clio_client/api/user.rb, line 26
def plural_resource;   'users';  end
singular_resource() click to toggle source
# File lib/clio_client/api/user.rb, line 27
def singular_resource; 'user';   end