Class: BlockKit::Elements::WorkflowButton

Inherits:
BaseButton show all
Defined in:
lib/block_kit/elements/workflow_button.rb

Constant Summary

Constants inherited from BaseButton

BaseButton::MAX_ACCESSIBILITY_LABEL_LENGTH, BaseButton::MAX_TEXT_LENGTH, BaseButton::VALID_STYLES

Constants inherited from Base

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



13
14
15
# File 'lib/block_kit/elements/workflow_button.rb', line 13

def as_json(*)
  super.merge(workflow: workflow&.as_json).compact
end