Class: NotionRb::Api::Create
Constant Summary
Constants inherited from Base
Base::API_BASE_URL, Base::BASE_URL, Base::REDEFINE_EXCEPTION, Base::S3_URL_PREFIX, Base::S3_URL_PREFIX_ENCODED, Base::SIGNED_URL_PREFIX
Instance Method Summary collapse
- #block_uuid ⇒ Object
-
#initialize(params) ⇒ Create
constructor
A new instance of Create.
Methods inherited from Base
Constructor Details
#initialize(params) ⇒ Create
Returns a new instance of Create.
6 7 8 9 10 11 12 |
# File 'lib/notion_rb/api/create.rb', line 6 def initialize(params) super @parent_id = params[:parent_id] @notion_id = SecureRandom.uuid @created_at = (Time.now.to_i / 100) * 100_000 end |
Instance Method Details
#block_uuid ⇒ Object
14 15 16 |
# File 'lib/notion_rb/api/create.rb', line 14 def block_uuid success? && @notion_id end |