Class: Slackert::Blocks::Divider
- Inherits:
-
BlockElement
- Object
- BlockElement
- Slackert::Blocks::Divider
- Defined in:
- lib/slackert/blocks.rb
Overview
Divider block element provides a horizontal separator, simlarly to HTML’s <hr>
Instance Method Summary collapse
-
#initialize ⇒ Divider
constructor
A new instance of Divider.
- #to_slack ⇒ Object
Constructor Details
#initialize ⇒ Divider
Returns a new instance of Divider.
43 44 45 |
# File 'lib/slackert/blocks.rb', line 43 def initialize super('divider') end |
Instance Method Details
#to_slack ⇒ Object
48 49 50 51 52 |
# File 'lib/slackert/blocks.rb', line 48 def to_slack { 'type': @type } end |