Class: BlockKit::Layout::Markdown

Inherits:
Base
  • Object
show all
Defined in:
lib/block_kit/layout/markdown.rb

Constant Summary collapse

MAX_LENGTH =
12_000

Constants inherited from Base

Base::MAX_BLOCK_ID_LENGTH

Instance Method Summary collapse

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::Layout::Base

Instance Method Details

#as_jsonObject



14
15
16
# File 'lib/block_kit/layout/markdown.rb', line 14

def as_json(*)
  super.merge(text: text).compact
end