Class: Slack::BlockKit::AppHomeOpened
- Inherits:
-
Object
- Object
- Slack::BlockKit::AppHomeOpened
- Includes:
- ActionView::Helpers::AssetUrlHelper
- Defined in:
- lib/slack/block_kit/app_home_opened.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(slack_user_id, slack_workspace_id, slack_gitlab_user_connection, slack_installation) ⇒ AppHomeOpened
constructor
A new instance of AppHomeOpened.
Constructor Details
#initialize(slack_user_id, slack_workspace_id, slack_gitlab_user_connection, slack_installation) ⇒ AppHomeOpened
Returns a new instance of AppHomeOpened.
14 15 16 17 18 19 |
# File 'lib/slack/block_kit/app_home_opened.rb', line 14 def initialize(slack_user_id, slack_workspace_id, slack_gitlab_user_connection, slack_installation) @slack_user_id = slack_user_id @slack_workspace_id = slack_workspace_id @slack_gitlab_user_connection = slack_gitlab_user_connection @slack_installation = slack_installation end |
Instance Method Details
#build ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/slack/block_kit/app_home_opened.rb', line 21 def build { type: "home", blocks: [ header, section_introduction, section_notifications_heading, section_notifications, section_slash_commands_heading, section_slash_commands, section_slash_commands_connect, section_connect_gitlab_account ] } end |