Class: Upwork::Api::Routers::Hr::Engagements
- Inherits:
-
Object
- Object
- Upwork::Api::Routers::Hr::Engagements
- Defined in:
- lib/upwork/api/routers/hr/engagements.rb
Overview
Engagements API
Constant Summary collapse
- ENTRY_POINT =
'api'
Instance Method Summary collapse
-
#get_list(params) ⇒ Object
Get list of engagements.
-
#get_specific(reference) ⇒ Object
Get specific engagement.
-
#initialize(client) ⇒ Engagements
constructor
Init.
Constructor Details
#initialize(client) ⇒ Engagements
Init
Arguments:
client: (Client)
26 27 28 29 |
# File 'lib/upwork/api/routers/hr/engagements.rb', line 26 def initialize(client) @client = client @client.epoint = ENTRY_POINT end |
Instance Method Details
#get_list(params) ⇒ Object
Get list of engagements
Arguments:
params: (Hash)
35 36 37 38 |
# File 'lib/upwork/api/routers/hr/engagements.rb', line 35 def get_list(params) $LOG.i "running " + __method__.to_s @client.get '/hr/v2/engagements', params end |
#get_specific(reference) ⇒ Object
Get specific engagement
Arguments:
reference: (String)
44 45 46 47 |
# File 'lib/upwork/api/routers/hr/engagements.rb', line 44 def get_specific(reference) $LOG.i "running " + __method__.to_s @client.get '/hr/v2/engagements/' + reference end |