Class: Slackert::Blocks::Divider

Inherits:
BlockElement show all
Defined in:
lib/slackert/blocks.rb

Overview

Divider block element provides a horizontal separator, simlarly to HTML’s <hr>

Instance Method Summary collapse

Constructor Details

#initializeDivider

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_slackObject



48
49
50
51
52
# File 'lib/slackert/blocks.rb', line 48

def to_slack
  {
    'type': @type
  }
end