Module: LuluApi::Client::PrintJobs
- Included in:
- LuluApi::Client
- Defined in:
- lib/lulu_api/client/print_jobs.rb
Instance Method Summary collapse
- #create_print_job(job) ⇒ Object
- #get_print_job(id) ⇒ Object
- #get_print_job_costs(id) ⇒ Object
- #get_print_job_status(id) ⇒ Object
- #list_print_jobs(options = {}) ⇒ Object
Instance Method Details
#create_print_job(job) ⇒ Object
36 37 38 39 40 41 |
# File 'lib/lulu_api/client/print_jobs.rb', line 36 def create_print_job(job) LuluApi.logger.debug 'Lulu: Creating print job' make_api_call do self.class.post("/print-jobs", { body: job.to_json }) end end |
#get_print_job(id) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/lulu_api/client/print_jobs.rb', line 13 def get_print_job(id) LuluApi.logger.debug 'Lulu: Getting print job' make_api_call do self.class.get("/print-jobs/#{id}") end end |
#get_print_job_costs(id) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/lulu_api/client/print_jobs.rb', line 21 def get_print_job_costs(id) LuluApi.logger.debug 'Lulu: Getting print job cost' make_api_call do self.class.get("/print-jobs/#{id}/costs") end end |