Class: Asana::Resources::JobsBase
- Defined in:
- lib/asana/resources/gen/jobs_base.rb
Direct Known Subclasses
Class Method Summary collapse
-
.get_job(client, job_gid: required("job_gid"), options: {}) ⇒ Object
Get a job by id.
- .inherited(base) ⇒ Object
Methods inherited from Resource
#initialize, #method_missing, #refresh, #respond_to_missing?, #to_h, #to_s
Methods included from ResponseHelper
Constructor Details
This class inherits a constructor from Asana::Resources::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Asana::Resources::Resource
Class Method Details
.get_job(client, job_gid: required("job_gid"), options: {}) ⇒ Object
Get a job by id
21 22 23 24 25 |
# File 'lib/asana/resources/gen/jobs_base.rb', line 21 def get_job(client, job_gid: required("job_gid"), options: {}) path = "/jobs/{job_gid}" path["{job_gid}"] = job_gid Job.new(parse(client.get(path, options: )).first, client: client) end |