Class: Upwork::Api::Routers::Organization::Users
- Inherits:
-
Object
- Object
- Upwork::Api::Routers::Organization::Users
- Defined in:
- lib/upwork/api/routers/organization/users.rb
Overview
Users inside Organization
Constant Summary collapse
- ENTRY_POINT =
'api'
Instance Method Summary collapse
-
#get_my_info ⇒ Object
Get Auth User Info.
-
#get_specific(user_reference) ⇒ Object
Get Specific User Info.
-
#initialize(client) ⇒ Users
constructor
Init.
Constructor Details
#initialize(client) ⇒ Users
Init
Arguments:
client: (Client)
26 27 28 29 |
# File 'lib/upwork/api/routers/organization/users.rb', line 26 def initialize(client) @client = client @client.epoint = ENTRY_POINT end |
Instance Method Details
#get_my_info ⇒ Object
Get Auth User Info
32 33 34 35 |
# File 'lib/upwork/api/routers/organization/users.rb', line 32 def get_my_info $LOG.i "running " + __method__.to_s @client.get '/hr/v2/users/me' end |
#get_specific(user_reference) ⇒ Object
Get Specific User Info
Arguments:
user_reference: (String)
41 42 43 44 |
# File 'lib/upwork/api/routers/organization/users.rb', line 41 def get_specific(user_reference) $LOG.i "running " + __method__.to_s @client.get '/hr/v2/users/' + user_reference end |