class Upwork::Api::Routers::Hr::Jobs
Jobs
API
Constants
- ENTRY_POINT
Public Class Methods
new(client)
click to toggle source
Init
Arguments:
client: (Client)
# File lib/upwork/api/routers/hr/jobs.rb, line 26 def initialize(client) @client = client @client.epoint = ENTRY_POINT end
Public Instance Methods
delete_job(key, params)
click to toggle source
Delete existent job
Arguments:
params: (Hash)
# File lib/upwork/api/routers/hr/jobs.rb, line 71 def delete_job(key, params) $LOG.i "running " + __method__.to_s @client.delete '/hr/v2/jobs/' + key, params end
edit_job(key, params)
click to toggle source
Edit existent job
Arguments:
params: (Hash)
# File lib/upwork/api/routers/hr/jobs.rb, line 62 def edit_job(key, params) $LOG.i "running " + __method__.to_s @client.put '/hr/v2/jobs/' + key, params end
get_list(params)
click to toggle source
Get list of jobs
Arguments:
params: (Hash)
# File lib/upwork/api/routers/hr/jobs.rb, line 35 def get_list(params) $LOG.i "running " + __method__.to_s @client.get '/hr/v2/jobs', params end
get_specific(key)
click to toggle source
Get specific job by key
Arguments:
key: (String)
# File lib/upwork/api/routers/hr/jobs.rb, line 44 def get_specific(key) $LOG.i "running " + __method__.to_s @client.get '/hr/v2/jobs/' + key end
post_job(params)
click to toggle source
Post a new job
Arguments:
params: (Hash)
# File lib/upwork/api/routers/hr/jobs.rb, line 53 def post_job(params) $LOG.i "running " + __method__.to_s @client.post '/hr/v2/jobs', params end