Class: BlockKit::Layout::RichText::List
- Defined in:
- lib/block_kit/layout/rich_text/list.rb
Constant Summary collapse
- VALID_STYLES =
[ BULLET = "bullet", ORDERED = "ordered" ].freeze
Instance Method Summary collapse
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::Base
Instance Method Details
#as_json ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/block_kit/layout/rich_text/list.rb', line 30 def as_json(*) super.merge( style: style, elements: elements&.map(&:as_json), indent: indent, offset: offset, border: border ).compact end |