Module: Tacokit::Client::Actions
- Included in:
- Tacokit::Client
- Defined in:
- lib/tacokit/client/actions.rb
Instance Method Summary collapse
-
#action(action_id, options = nil) ⇒ Tacokit::Resource
Retrieve an action.
-
#action_board(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an action's board.
-
#action_card(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an actions“ card.
-
#action_entities(action_id) ⇒ Array
Retrive an action's entities.
-
#action_list(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an action's list.
-
#action_member(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an action's member.
-
#action_member_creator(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an action's creator.
-
#action_organization(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an action's organization.
-
#delete_action(action_id) ⇒ Object
Delete an action.
-
#update_action(action_id, options = {}) ⇒ Object
Update an action.
-
#update_action_text(action_id, text) ⇒ Object
(also: #edit_action_text)
Set new text for an action.
Instance Method Details
#action(action_id, options = nil) ⇒ Tacokit::Resource
Retrieve an action
8 9 10 |
# File 'lib/tacokit/client/actions.rb', line 8 def action(action_id, = nil) get action_path(action_id), end |
#action_board(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an action's board
17 18 19 |
# File 'lib/tacokit/client/actions.rb', line 17 def action_board(action_id, fields = "all") action_resource action_id, "board", fields: fields end |
#action_card(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an actions“ card
26 27 28 |
# File 'lib/tacokit/client/actions.rb', line 26 def action_card(action_id, fields = "all") action_resource action_id, "card", fields: fields end |
#action_entities(action_id) ⇒ Array
Retrive an action's entities
34 35 36 |
# File 'lib/tacokit/client/actions.rb', line 34 def action_entities(action_id) action_resource action_id, "entities" end |
#action_list(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an action's list
43 44 45 |
# File 'lib/tacokit/client/actions.rb', line 43 def action_list(action_id, fields = "all") action_resource action_id, "list", fields: fields end |
#action_member(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an action's member
52 53 54 |
# File 'lib/tacokit/client/actions.rb', line 52 def action_member(action_id, fields = "all") action_resource action_id, "member", fields: fields end |
#action_member_creator(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an action's creator
61 62 63 |
# File 'lib/tacokit/client/actions.rb', line 61 def action_member_creator(action_id, fields = "all") action_resource action_id, "memberCreator", fields: fields end |
#action_organization(action_id, fields = "all") ⇒ Tacokit::Resource
Retrieve an action's organization
70 71 72 |
# File 'lib/tacokit/client/actions.rb', line 70 def action_organization(action_id, fields = "all") action_resource action_id, "organization", fields: fields end |
#delete_action(action_id) ⇒ Object
Delete an action
94 95 96 |
# File 'lib/tacokit/client/actions.rb', line 94 def delete_action(action_id) delete action_path(action_id) end |
#update_action(action_id, options = {}) ⇒ Object
Update an action
78 79 80 |
# File 'lib/tacokit/client/actions.rb', line 78 def update_action(action_id, = {}) put action_path(action_id), end |
#update_action_text(action_id, text) ⇒ Object Also known as: edit_action_text
Set new text for an action
86 87 88 |
# File 'lib/tacokit/client/actions.rb', line 86 def update_action_text(action_id, text) put action_path(action_id, "text"), value: text end |