<aside> 👉
Links (Block base class)
Notion Ruby Mapping Public API Reference
</aside>
Creates a ColumnBlock object that contains the blocks displayed in one column. A ColumnBlock can also be created without child blocks and populated later.
Block ... a single child BlockArray<Block> ... multiple child Blocks in the specified order[] ... creates an empty ColumnBlockNumeric ... the column width rationil ... omits width_ratio from the generated JSONWhen a ColumnBlock is retrieved from Notion, its width_ratio value is preserved in the generated JSON.
column = ColumnBlock.new(
[
ParagraphBlock.new("First block"),
CalloutBlock.new("Second block", emoji: "✅"),
],
width_ratio: 0.4,
)
column = ColumnBlock.new
<aside> ⚠️
A ColumnBlock is a public API and may be created independently, but it can only be appended as a child of a ColumnListBlock. A ColumnBlock can contain regular Blocks and can receive additional child Blocks through append_block_children after it exists in Notion.
</aside>
Appends one or more regular Blocks to an existing ColumnBlock.
start, end, or niltruedry_run is true