Module: Slack::Web::Api::Endpoints::Functions
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/functions.rb
Instance Method Summary collapse
-
#functions_completeError(options = {}) ⇒ Object
Signal that a function failed to complete.
-
#functions_completeSuccess(options = {}) ⇒ Object
Signal the successful completion of a function.
Instance Method Details
#functions_completeError(options = {}) ⇒ Object
Signal that a function failed to complete
18 19 20 21 22 |
# File 'lib/slack/web/api/endpoints/functions.rb', line 18 def functions_completeError( = {}) raise ArgumentError, 'Required arguments :error missing' if [:error].nil? raise ArgumentError, 'Required arguments :function_execution_id missing' if [:function_execution_id].nil? post('functions.completeError', ) end |
#functions_completeSuccess(options = {}) ⇒ Object
Signal the successful completion of a function
33 34 35 36 37 38 |
# File 'lib/slack/web/api/endpoints/functions.rb', line 33 def functions_completeSuccess( = {}) raise ArgumentError, 'Required arguments :function_execution_id missing' if [:function_execution_id].nil? raise ArgumentError, 'Required arguments :outputs missing' if [:outputs].nil? = (, %i[outputs]) post('functions.completeSuccess', ) end |