Class: Slack::BlockKit::AppHomeOpened

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::AssetUrlHelper
Defined in:
lib/slack/block_kit/app_home_opened.rb

Instance Method Summary collapse

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

#buildObject



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,
      
    ]
  }
end