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