class Upwork::Api::Routers::Hr::Roles
Constants
- ENTRY_POINT
Public Class Methods
new(client)
click to toggle source
Init
Arguments:
client: (Client)
# File lib/upwork/api/routers/hr/roles.rb, line 26 def initialize(client) @client = client @client.epoint = ENTRY_POINT end
Public Instance Methods
get_all()
click to toggle source
Get user roles
# File lib/upwork/api/routers/hr/roles.rb, line 32 def get_all $LOG.i "running " + __method__.to_s @client.get '/hr/v2/userroles' end
get_by_specific_user(user_reference)
click to toggle source
Get by specific user
Arguments:
reference: (String)
# File lib/upwork/api/routers/hr/roles.rb, line 41 def get_by_specific_user(user_reference) $LOG.i "running " + __method__.to_s @client.get '/hr/v2/userroles/' + user_reference end