Class: Setka::Workflow::Ticket
- Defined in:
- lib/setka/workflow/ticket.rb
Class Method Summary collapse
-
.publish(id, options = {}) ⇒ Hash
Publishes a ticket.
-
.sync_analytics(body, options = {}) ⇒ Array
Sync ticket’s analytics.
-
.unpublish(id, options = {}) ⇒ Hash
Unpublishes a ticket.
-
.update(id, body, options = {}) ⇒ Hash
Updates a ticket.
Methods inherited from Resource
actual_client, collection, member
Class Method Details
.publish(id, options = {}) ⇒ Hash
Publishes a ticket.
17 18 19 |
# File 'lib/setka/workflow/ticket.rb', line 17 def publish(id, = {}) member(:patch, id, :publish, nil, ) end |
.sync_analytics(body, options = {}) ⇒ Array
Sync ticket’s analytics.
62 63 64 |
# File 'lib/setka/workflow/ticket.rb', line 62 def sync_analytics(body, = {}) collection(:patch, :sync_analytics, body, ) end |
.unpublish(id, options = {}) ⇒ Hash
Unpublishes a ticket.
32 33 34 |
# File 'lib/setka/workflow/ticket.rb', line 32 def unpublish(id, = {}) member(:patch, id, :unpublish, nil, ) end |
.update(id, body, options = {}) ⇒ Hash
Updates a ticket.
49 50 51 |
# File 'lib/setka/workflow/ticket.rb', line 49 def update(id, body, = {}) member(:patch, id, nil, body, ) end |