Class: BlockKit::Layout::RichText::Elements::Broadcast
- Defined in:
- lib/block_kit/layout/rich_text/elements/broadcast.rb
Constant Summary collapse
- VALID_RANGES =
[ HERE = "here", EVERYONE = "everyone", CHANNEL = "channel" ].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
17 18 19 |
# File 'lib/block_kit/layout/rich_text/elements/broadcast.rb', line 17 def as_json(*) super.merge(range: range).compact end |