Class: BlockKit::Layout::Header

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

Constant Summary collapse

MAX_LENGTH =
150

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



17
18
19
# File 'lib/block_kit/layout/header.rb', line 17

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