Class: Mailfloss::Resources::Jobs
- Defined in:
- lib/mailfloss/resources.rb,
sig/resources.rbs
Overview
GET /jobs
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#get(id) ⇒ Hash
GET /jobs/id.
-
#list(per_page: nil, cursor: nil, source: nil, status: nil) ⇒ Hash
GET /jobs — cursor-paginated job history.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Mailfloss::Resources::Base
Instance Method Details
#get(id) ⇒ Hash
GET /jobs/id
77 78 79 |
# File 'lib/mailfloss/resources.rb', line 77 def get(id) client.request(:get, "/jobs/#{encode(id)}") end |
#list(per_page: nil, cursor: nil, source: nil, status: nil) ⇒ Hash
GET /jobs — cursor-paginated job history.
68 69 70 71 |
# File 'lib/mailfloss/resources.rb', line 68 def list(per_page: nil, cursor: nil, source: nil, status: nil) client.request(:get, "/jobs", query: { per_page: per_page, cursor: cursor, source: source, status: status }) end |