<aside> đ Links (Controller base class)
Notion Ruby Mapping Public API Reference
</aside>
<aside> âšī¸ â Table of Contents
</aside>
NotionCache
class is a singleton class. NotionCache.instance
creates a NotionCache object or retrieve an existing Notion Cache object.
NotionCache.instance
# => #<NotionRubyMapping::NotionCache:...> # created or existing NotionCache object
Please create a client (notion-ruby-client) before you use the following class.
NotionCache.instance.create_client "secret_XXXXXXXXXXXXXXXXXXXX" # write directly
NotionCache.instance.create_client ENV["NOTION_API_TOKEN"], wait: 0.1 # token from environment and short wait
hex_id
returns XXX_id without â-â
NotionCache.instance.hex_id "0a58761e-f3b4-429f-b86e-0ad9ff815fe1"
# => "0a58761ef3b4429fb86e0ad9ff815fe1"