Class: Upwork::Api::Routers::Hr::Interviews
- Inherits:
-
Object
- Object
- Upwork::Api::Routers::Hr::Interviews
- Defined in:
- lib/upwork/api/routers/hr/interviews.rb
Overview
Interviews workflow
Constant Summary collapse
- ENTRY_POINT =
'api'
Instance Method Summary collapse
-
#initialize(client) ⇒ Interviews
constructor
Init.
-
#invite(job_key, params) ⇒ Object
Invite to Interview.
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 |