Class: BlockKit::Layout::RichText::Elements::Emoji
- Defined in:
- lib/block_kit/layout/rich_text/elements/emoji.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_json ⇒ Object
19 20 21 22 23 24 |
# File 'lib/block_kit/layout/rich_text/elements/emoji.rb', line 19 def as_json(*) super.merge( name: name, unicode: unicode ).compact end |
#unicode=(value) ⇒ Object
15 16 17 |
# File 'lib/block_kit/layout/rich_text/elements/emoji.rb', line 15 def unicode=(value) super(value&.to_s&.downcase) end |