Module: Slack::Web::Api::Endpoints::Workflows
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/workflows.rb
Instance Method Summary collapse
-
#workflows_stepCompleted(options = {}) ⇒ Object
Indicate that an app’s step in a workflow completed execution.
-
#workflows_stepFailed(options = {}) ⇒ Object
Indicate that an app’s step in a workflow failed to execute.
-
#workflows_updateStep(options = {}) ⇒ Object
Update the configuration for a workflow step.
Instance Method Details
#workflows_stepCompleted(options = {}) ⇒ Object
Indicate that an app’s step in a workflow completed execution.
18 19 20 21 |
# File 'lib/slack/web/api/endpoints/workflows.rb', line 18 def workflows_stepCompleted( = {}) raise ArgumentError, 'Required arguments :workflow_step_execute_id missing' if [:workflow_step_execute_id].nil? post('workflows.stepCompleted', ) end |
#workflows_stepFailed(options = {}) ⇒ Object
Indicate that an app’s step in a workflow failed to execute.
32 33 34 35 36 37 |
# File 'lib/slack/web/api/endpoints/workflows.rb', line 32 def workflows_stepFailed( = {}) raise ArgumentError, 'Required arguments :error missing' if [:error].nil? raise ArgumentError, 'Required arguments :workflow_step_execute_id missing' if [:workflow_step_execute_id].nil? = (, %i[error]) post('workflows.stepFailed', ) end |
#workflows_updateStep(options = {}) ⇒ Object
Update the configuration for a workflow step.
54 55 56 57 58 |
# File 'lib/slack/web/api/endpoints/workflows.rb', line 54 def workflows_updateStep( = {}) raise ArgumentError, 'Required arguments :workflow_step_edit_id missing' if [:workflow_step_edit_id].nil? = (, %i[inputs outputs]) post('workflows.updateStep', ) end |