Class: Slackened::BlockKit::Blocks::Divider

Inherits:
Base
  • Object
show all
Defined in:
lib/slackened/block_kit/blocks/divider.rb

Instance Attribute Summary

Attributes inherited from Base

#block

Instance Method Summary collapse

Methods inherited from Base

#set

Constructor Details

#initializeDivider

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_hObject



16
17
18
# File 'lib/slackened/block_kit/blocks/divider.rb', line 16

def to_h
	@block.to_h
end