Class: Upwork::Api::Routers::Organization::Users

Inherits:
Object
  • Object
show all
Defined in:
lib/upwork/api/routers/organization/users.rb

Overview

Users inside Organization

Constant Summary collapse

ENTRY_POINT =
'api'

Instance Method Summary collapse

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_infoObject

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
  raise StandardError.new "The legacy API was deprecated. Please, use GraphQL call - see example in this library."
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
  raise StandardError.new "The legacy API was deprecated. Please, use GraphQL call - see example in this library."
end