<aside> 👉
Links (Block base class)
Notion Ruby Mapping Public API Reference
</aside>
<aside> ⚠️
LinkPreviewBlock is read-only. The Notion API can return link_preview blocks, but does not support creating or appending them. NotionRubyMapping does not provide URL updates for this block type. Retrieve an existing Link Preview through Block.find or a block-children response.
</aside>
$\fbox{implemented in UrlBaseBlock}$
url returns the original URL stored in the Link Preview returned by the Notion API.
block = Block.find "link_preview_block_id"
block.url
# => "<https://github.com/example/example-repo/pull/1234>"
$\fbox{implemented in Block}$
false (Boolean)can_append returns false because the Notion API does not support creating or appending link_preview blocks.
block = Block.find "link_preview_block_id"
block.can_append
# => false