<aside>
👉
Links (Block base class)
Page
AudioBlock
Block
CodeBlock
EmbedBlock
Heading2Block
LinkPreviewBlock
PdfBlock
TableOfContentsBlock
ToggleHeading1Block
VideoBlock
Database
BookmarkBlock
CalloutBlock
ColumnBlock
EquationBlock
Heading3Block
LinkToPageBlock
QuoteBlock
TableRowBlock
ToggleHeading2Block
DataSource 🆕
BreadcrumbBlock
ChildDatabaseBlock
ColumnListBlock
FileBlock
Heading4Block
NumberedListItemBlock
SyncedBlock
ToDoBlock
ToggleHeading3Block
List
BulletedListItemBlock
ChildPageBlock
DividerBlock
Heading1Block
ImageBlock
ParagraphBlock
TableBlock
ToggleBlock
ToggleHeading4Block
Notion Ruby Mapping Public API Reference
</aside>
1. Class methods
self.new creates a DividerBlock. It does not take any block-specific arguments. A divider block has no block-specific content; its divider value is an empty object.
block = DividerBlock.new
block.block_json
# => {"type"=>"divider", "object"=>"block", "divider"=>{}}
A DividerBlock cannot have child blocks and has no block-specific mutable properties. General operations such as retrieval and deletion are inherited from Block.