Class: Slackened::BlockKit::Blocks::Divider
- Defined in:
- lib/slackened/block_kit/blocks/divider.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Divider
constructor
A new instance of Divider.
- #to_h ⇒ Object
Methods inherited from Base
Constructor Details
#initialize ⇒ Divider
Returns a new instance of Divider.
10 11 12 13 14 |
# File 'lib/slackened/block_kit/blocks/divider.rb', line 10 def initialize set({ type: :divider }) self end |
Instance Method Details
#to_h ⇒ Object
16 17 18 |
# File 'lib/slackened/block_kit/blocks/divider.rb', line 16 def to_h @block.to_h end |