Class: BlockKit::Layout::RichText::Elements::TextStyle

Inherits:
Base
  • Object
show all
Defined in:
lib/block_kit/layout/rich_text/elements/text_style.rb

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_jsonObject



13
14
15
16
17
18
19
20
# File 'lib/block_kit/layout/rich_text/elements/text_style.rb', line 13

def as_json(*)
  {
    bold: bold,
    italic: italic,
    strike: strike,
    code: code
  }.compact
end