class Upwork::Api::Routers::Hr::Freelancers::Offers
Freelancers
Job Offers
API
Constants
- ENTRY_POINT
Public Class Methods
new(client)
click to toggle source
Init
Arguments:
client: (Client)
# File lib/upwork/api/routers/hr/freelancers/offers.rb, line 27 def initialize(client) @client = client @client.epoint = ENTRY_POINT end
Public Instance Methods
actions(reference, params)
click to toggle source
Apply specific action
Arguments:
reference: (String) params: (Hash)
# File lib/upwork/api/routers/hr/freelancers/offers.rb, line 55 def actions(reference, params) $LOG.i "running " + __method__.to_s @client.post '/offers/v1/clients/actions/' + reference, params end
get_list(params = {})
click to toggle source
Get list of offers
Arguments:
params: (Hash)
# File lib/upwork/api/routers/hr/freelancers/offers.rb, line 36 def get_list(params = {}) $LOG.i "running " + __method__.to_s @client.get '/offers/v1/contractors/offers', params end
get_specific(reference)
click to toggle source
Get specific offer
Arguments:
reference: (String)
# File lib/upwork/api/routers/hr/freelancers/offers.rb, line 45 def get_specific(reference) $LOG.i "running " + __method__.to_s @client.get '/offers/v1/clients/offers/' + reference end