Module: Slack::Web::Api::Endpoints::WorkflowsFeatured
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/workflows_featured.rb
Instance Method Summary collapse
-
#workflows_featured_add(options = {}) ⇒ Object
Add featured workflows to a channel.
-
#workflows_featured_list(options = {}) ⇒ Object
List the featured workflows for specified channels.
-
#workflows_featured_remove(options = {}) ⇒ Object
Remove featured workflows from a channel.
-
#workflows_featured_set(options = {}) ⇒ Object
Set featured workflows for a channel.
Instance Method Details
#workflows_featured_add(options = {}) ⇒ Object
Add featured workflows to a channel.
18 19 20 21 22 |
# File 'lib/slack/web/api/endpoints/workflows_featured.rb', line 18 def workflows_featured_add( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :trigger_ids missing' if [:trigger_ids].nil? post('workflows.featured.add', ) end |
#workflows_featured_list(options = {}) ⇒ Object
List the featured workflows for specified channels.
31 32 33 34 |
# File 'lib/slack/web/api/endpoints/workflows_featured.rb', line 31 def workflows_featured_list( = {}) raise ArgumentError, 'Required arguments :channel_ids missing' if [:channel_ids].nil? post('workflows.featured.list', ) end |
#workflows_featured_remove(options = {}) ⇒ Object
Remove featured workflows from a channel.
45 46 47 48 49 |
# File 'lib/slack/web/api/endpoints/workflows_featured.rb', line 45 def workflows_featured_remove( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :trigger_ids missing' if [:trigger_ids].nil? post('workflows.featured.remove', ) end |
#workflows_featured_set(options = {}) ⇒ Object
Set featured workflows for a channel.
60 61 62 63 64 |
# File 'lib/slack/web/api/endpoints/workflows_featured.rb', line 60 def workflows_featured_set( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :trigger_ids missing' if [:trigger_ids].nil? post('workflows.featured.set', ) end |