Class: Slack::BlockKit::IncidentManagement::IncidentModalOpened
- Inherits:
-
Object
- Object
- Slack::BlockKit::IncidentManagement::IncidentModalOpened
- Defined in:
- lib/slack/block_kit/incident_management/incident_modal_opened.rb
Constant Summary collapse
- MAX_CHAR_LENGTH =
See api.slack.com/reference/block-kit/composition-objects#option for the text limit. Dropdown menu items can have max length of 75 chars.
75
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(projects, response_url) ⇒ IncidentModalOpened
constructor
A new instance of IncidentModalOpened.
Constructor Details
#initialize(projects, response_url) ⇒ IncidentModalOpened
Returns a new instance of IncidentModalOpened.
11 12 13 14 |
# File 'lib/slack/block_kit/incident_management/incident_modal_opened.rb', line 11 def initialize(projects, response_url) @projects = projects @response_url = response_url end |
Instance Method Details
#build ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/slack/block_kit/incident_management/incident_modal_opened.rb', line 16 def build { type: "modal", title: modal_title, submit: , close: , notify_on_close: true, callback_id: 'incident_modal', private_metadata: response_url, blocks: [ title_block, details_selection_block, status_and_assignee_block, label_block, confidential_block, incident_description_block, zoom_link_block ] } end |