Module: RockRMS::Client::ServiceJob
- Included in:
- RockRMS::Client
- Defined in:
- lib/rock_rms/resources/service_job.rb
Instance Method Summary collapse
Instance Method Details
#list_service_jobs(options = {}) ⇒ Object
4 5 6 7 |
# File 'lib/rock_rms/resources/service_job.rb', line 4 def list_service_jobs( = {}) res = get('ServiceJobs', ) Response::ServiceJob.format(res) end |
#update_service_job(id, cron: nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rock_rms/resources/service_job.rb', line 9 def update_service_job(id, cron: nil) = { 'CronExpression': cron } patch("ServiceJobs/#{id}", ) end |