Class: Setka::Workflow::Ticket

Inherits:
Resource
  • Object
show all
Defined in:
lib/setka/workflow/ticket.rb

Class Method Summary collapse

Methods inherited from Resource

actual_client, collection, member

Class Method Details

.publish(id, options = {}) ⇒ Object



5
6
7
# File 'lib/setka/workflow/ticket.rb', line 5

def publish(id, options = {})
  member(:patch, id, :publish, nil, options)
end

.sync_analytics(body, options = {}) ⇒ Object



17
18
19
# File 'lib/setka/workflow/ticket.rb', line 17

def sync_analytics(body, options = {})
  collection(:patch, :sync_analytics, body, options)
end

.unpublish(id, options = {}) ⇒ Object



9
10
11
# File 'lib/setka/workflow/ticket.rb', line 9

def unpublish(id, options = {})
  member(:patch, id, :unpublish, nil, options)
end

.update(id, body, options = {}) ⇒ Object



13
14
15
# File 'lib/setka/workflow/ticket.rb', line 13

def update(id, body, options = {})
  member(:patch, id, nil, body, options)
end