Class: BlockKit::Elements::Button

Inherits:
BaseButton show all
Includes:
Concerns::Confirmable
Defined in:
lib/block_kit/elements/button.rb

Constant Summary collapse

MAX_URL_LENGTH =
3000
MAX_VALUE_LENGTH =
2000

Constants inherited from BaseButton

BlockKit::Elements::BaseButton::MAX_ACCESSIBILITY_LABEL_LENGTH, BlockKit::Elements::BaseButton::MAX_TEXT_LENGTH, BlockKit::Elements::BaseButton::VALID_STYLES

Constants inherited from Base

BlockKit::Elements::Base::MAX_ACTION_ID_LENGTH

Instance Method Summary collapse

Methods inherited from BaseButton

inherited, #initialize

Methods inherited from Base

inherited, #initialize

Methods inherited from Base

#==, fix, #fix_validation_errors, #fix_validation_errors!, fixes, inherited, #initialize, inspect, #inspect, #pretty_print, #to_json

Constructor Details

This class inherits a constructor from BlockKit::Elements::BaseButton

Instance Method Details

#as_jsonObject



22
23
24
# File 'lib/block_kit/elements/button.rb', line 22

def as_json(*)
  super.merge(url: url, value: value).compact
end