struct Slack::UI::Blocks::Actions

Defined in:

slack/ui/blocks/actions.cr

Constant Summary

ASSIGNED_TYPES = [block_id : String | ::Nil = nil, elements : Array(Slack::UI::BlockElements::Button) | ::Nil = nil] of TypeDeclaration

Constructors

Instance Method Summary

Constructor methods inherited from struct Slack::UI::Block

new(pull : JSON::PullParser) new

Macros inherited from module Slack::InitializerMacros

generate_initializer generate_initializer, inherit_assigns inherit_assigns, properties_with_initializer(*type_declarations) properties_with_initializer, setup_initializer_hook setup_initializer_hook

Macros inherited from module Slack::UI::DynamicTextComposition

text_object(klass, **options) text_object

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(block_id : String | Nil = nil, elements : Array(Slack::UI::BlockElements::Button) | Nil = nil) #

Instance Method Detail

def after_initialize #

[View source]
def block_id : String | Nil #

def block_id=(block_id : String | Nil) #

def elements : Array(Slack::UI::BlockElements::Button) | Nil #

def elements=(elements : Array(Slack::UI::BlockElements::Button) | Nil) #

def to_json(json : JSON::Builder) #

[View source]
def type : String #

[View source]