Sha256: b9dd56c2ebc748287808cb4d58bb17581f97c12065393fe88114ea95def0c295
Contents?: true
Size: 1016 Bytes
Versions: 3
Compression:
Stored size: 1016 Bytes
Contents
# frozen_string_literal: true # This file was auto-generated by lib/tasks/web.rake module Slack module Web module Api module Endpoints module Dialog # # Open a dialog with a user # # @option options [string] :dialog # The dialog definition. This must be a JSON-encoded string. # @option options [string] :trigger_id # Exchange a trigger to post to the user. # @see https://api.slack.com/methods/dialog.open # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/dialog/dialog.open.json def dialog_open(options = {}) raise ArgumentError, 'Required arguments :dialog missing' if options[:dialog].nil? raise ArgumentError, 'Required arguments :trigger_id missing' if options[:trigger_id].nil? options = encode_options_as_json(options, %i[dialog]) post('dialog.open', options) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-2.4.0 | lib/slack/web/api/endpoints/dialog.rb |
slack-ruby-client-2.3.0 | lib/slack/web/api/endpoints/dialog.rb |
slack-ruby-client-2.2.0 | lib/slack/web/api/endpoints/dialog.rb |