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