Class: Upwork::Api::Routers::Hr::Freelancers::Offers
- Inherits:
-
Object
- Object
- Upwork::Api::Routers::Hr::Freelancers::Offers
- Defined in:
- lib/upwork/api/routers/hr/freelancers/offers.rb
Overview
Freelancers Job Offers API
Constant Summary collapse
- ENTRY_POINT =
'api'
Instance Method Summary collapse
-
#actions(reference, params) ⇒ Object
Apply specific action.
-
#get_list(params = {}) ⇒ Object
Get list of offers.
-
#get_specific(reference) ⇒ Object
Get specific offer.
-
#initialize(client) ⇒ Offers
constructor
Init.
Constructor Details
#initialize(client) ⇒ Offers
Init
Arguments:
client: (Client)
27 28 29 30 |
# File 'lib/upwork/api/routers/hr/freelancers/offers.rb', line 27 def initialize(client) @client = client @client.epoint = ENTRY_POINT end |
Instance Method Details
#actions(reference, params) ⇒ Object
Apply specific action
Arguments:
reference: (String)
params: (Hash)
55 56 57 58 |
# File 'lib/upwork/api/routers/hr/freelancers/offers.rb', line 55 def actions(reference, params) $LOG.i "running " + __method__.to_s raise StandardError.new "The legacy API was deprecated. Please, use GraphQL call - see example in this library." end |
#get_list(params = {}) ⇒ Object
Get list of offers
Arguments:
params: (Hash)
36 37 38 39 |
# File 'lib/upwork/api/routers/hr/freelancers/offers.rb', line 36 def get_list(params = {}) $LOG.i "running " + __method__.to_s raise StandardError.new "The legacy API was deprecated. Please, use GraphQL call - see example in this library." end |
#get_specific(reference) ⇒ Object
Get specific offer
Arguments:
reference: (String)
45 46 47 48 |
# File 'lib/upwork/api/routers/hr/freelancers/offers.rb', line 45 def get_specific(reference) $LOG.i "running " + __method__.to_s raise StandardError.new "The legacy API was deprecated. Please, use GraphQL call - see example in this library." end |