Class: SlackInteractiveClient::ResponseClient
- Inherits:
-
Object
- Object
- SlackInteractiveClient::ResponseClient
- Defined in:
- lib/slack_interactive_client/response_client.rb
Class Method Summary collapse
-
.respond(response_url, body) ⇒ Object
{ “response_type”: “in_channel”, “response_type”: “ephemeral” } { “text”: “text” } { “blocks”: [ ] } { “replace_original”: false“ },.
Class Method Details
.respond(response_url, body) ⇒ Object
{ “response_type”: “in_channel”, “response_type”: “ephemeral” } { “text”: “text” } { “blocks”: [ ] } { “replace_original”: false“ },
12 13 14 15 16 17 |
# File 'lib/slack_interactive_client/response_client.rb', line 12 def respond(response_url, body) ::HTTParty.post(response_url, body: body.to_json, headers: { 'Content-Type' => 'application/json' } ) end |