<aside>
đ Links (Block base class)
Page
BookmarkBlock
CodeBlock
EmbedBlock
Heading2Block
LinkToPageBlock
QuoteBlock
ToDoBlock
ToggleHeading3Block
Database
BreadcrumbBlock
ColumnBlock
EquationBlock
Heading3Block
NumberedListItemBlock
SyncedBlock
ToggleBlock
VideoBlock
List
BulletedListItemBlock
ColumnListBlock
FileBlock
ImageBlock
ParagraphBlock
TableOfContentsBlock
ToggleHeading1Block
Block
CalloutBlock
DividerBlock
Heading1Block
LinkPreviewBlock
PdfBlock
TemplateBlock
ToggleHeading2Block
Notion Ruby Mapping Public API Reference
</aside>
<aside>
âšī¸ â Table of Contents
</aside>
1. Singleton methods
self.new(sub_blocks) â ColumnBlock
- [PARAM] sub_blocks
- Block ... a single Block
- [Block1a, Block1b] ... array of Blocks
self.new
creates a ColumnBlock
object.
b = ColumnBlock.new CalloutBlock.new("Emoji callout", emoji: "â
"); b.block_json
# => {"type"=>"column", "object"=>"block", "column"=>{"children"=>[{"type"=>"callout", "object"=>"block", "callout"=>{"rich_text"=>[{"type"=>"text", "text"=>{"content"=>"Emoji callout", "link"=>nil}, "plain_text"=>"Emoji callout", "href"=>nil}], "color"=>"default", "icon"=>{"type"=>"emoji", "emoji"=>"â
"}}}]}}
â Table of Contents