Module: Tacokit::Client::Actions
- Included in:
- Tacokit::Client
- Defined in:
- lib/tacokit/client/actions.rb
Instance Method Summary (collapse)
-
- (Tacokit::Resource) action(action_id, options = nil)
Retrieve an action.
-
- (Tacokit::Resource) action_board(action_id, fields = "all")
Retrieve an action's board.
-
- (Tacokit::Resource) action_card(action_id, fields = "all")
Retrieve an actions“ card.
-
- (Array) action_entities(action_id)
Retrive an action's entities.
-
- (Tacokit::Resource) action_list(action_id, fields = "all")
Retrieve an action's list.
-
- (Tacokit::Resource) action_member(action_id, fields = "all")
Retrieve an action's member.
-
- (Tacokit::Resource) action_member_creator(action_id, fields = "all")
Retrieve an action's creator.
-
- (Tacokit::Resource) action_organization(action_id, fields = "all")
Retrieve an action's organization.
-
- (Object) delete_action(action_id)
Delete an action.
-
- (Object) update_action(action_id, options = {})
Update an action.
-
- (Object) update_action_text(action_id, text)
(also: #edit_action_text)
Set new text for an action.
Instance Method Details
- (Tacokit::Resource) action(action_id, options = nil)
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 |
- (Tacokit::Resource) action_board(action_id, fields = "all")
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 |
- (Tacokit::Resource) action_card(action_id, fields = "all")
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 |
- (Array) action_entities(action_id)
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 |
- (Tacokit::Resource) action_list(action_id, fields = "all")
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 |
- (Tacokit::Resource) action_member(action_id, fields = "all")
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 |
- (Tacokit::Resource) action_member_creator(action_id, fields = "all")
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 |
- (Tacokit::Resource) action_organization(action_id, fields = "all")
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 |
- (Object) delete_action(action_id)
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 |
- (Object) update_action(action_id, options = {})
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 |
- (Object) update_action_text(action_id, text) 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 |