Class: Upwork::Api::Routers::Hr::Interviews

Inherits:
Object
  • Object
show all
Defined in:
lib/upwork/api/routers/hr/interviews.rb

Overview

Interviews workflow

Constant Summary collapse

ENTRY_POINT =
'api'

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Interviews

Init

Arguments:

client: (Client)


26
27
28
29
# File 'lib/upwork/api/routers/hr/interviews.rb', line 26

def initialize(client)
  @client = client
  @client.epoint = ENTRY_POINT 
end

Instance Method Details

#invite(job_key, params) ⇒ Object

Invite to Interview

Arguments:

job_key: (String)
params: (Hash)


36
37
38
39
# File 'lib/upwork/api/routers/hr/interviews.rb', line 36

def invite(job_key, params)
  $LOG.i "running " + __method__.to_s
  @client.post '/hr/v1/jobs/' + job_key + '/candidates', params
end