Module: Tacokit::Client::Actions

Included in:
Tacokit::Client
Defined in:
lib/tacokit/client/actions.rb

Instance Method Summary collapse

Instance Method Details

#action(action_id, options = nil) ⇒ Object

Retrieve an action


7
8
9
# File 'lib/tacokit/client/actions.rb', line 7

def action(action_id, options = nil)
  get action_path(action_id), options
end

#action_board(action_id, fields = "all") ⇒ Object

Retrieve an action's board


14
15
16
# File 'lib/tacokit/client/actions.rb', line 14

def action_board(action_id, fields = "all")
  action_resource action_id, "board", fields: fields
end

#action_card(action_id, fields = "all") ⇒ Object

Retrieve an actions“ card


21
22
23
# File 'lib/tacokit/client/actions.rb', line 21

def action_card(action_id, fields = "all")
  action_resource action_id, "card", fields: fields
end

#action_entities(action_id) ⇒ Object

Retrive an action's entities


28
29
30
# File 'lib/tacokit/client/actions.rb', line 28

def action_entities(action_id)
  action_resource action_id, "entities"
end

#action_list(action_id, fields = "all") ⇒ Object

Retrieve an action's list


35
36
37
# File 'lib/tacokit/client/actions.rb', line 35

def action_list(action_id, fields = "all")
  action_resource action_id, "list", fields: fields
end

#action_member(action_id, fields = "all") ⇒ Object

Retrieve an actions“ member


42
43
44
# File 'lib/tacokit/client/actions.rb', line 42

def action_member(action_id, fields = "all")
  action_resource action_id, "member", fields: fields
end

#action_member_creator(action_id, fields = "all") ⇒ Object

Retrieve an action's creator


49
50
51
# File 'lib/tacokit/client/actions.rb', line 49

def action_member_creator(action_id, fields = "all")
  action_resource action_id, "memberCreator", fields: fields
end

#action_organization(action_id, fields = "all") ⇒ Object

Retrieve an action's org


56
57
58
# File 'lib/tacokit/client/actions.rb', line 56

def action_organization(action_id, fields = "all")
  action_resource action_id, "organization", fields: fields
end

#delete_action(action_id) ⇒ Object

Delete an action


78
79
80
# File 'lib/tacokit/client/actions.rb', line 78

def delete_action(action_id)
  delete action_path(action_id)
end

#update_action(action_id, options = {}) ⇒ Object

Update an action


63
64
65
# File 'lib/tacokit/client/actions.rb', line 63

def update_action(action_id, options = {})
  put action_path(action_id), options
end

#update_action_text(action_id, text) ⇒ Object Also known as: edit_action_text

Set new text for an action


70
71
72
# File 'lib/tacokit/client/actions.rb', line 70

def update_action_text(action_id, text)
  put action_path(action_id, "text"), value: text
end