Class: NotionRb::Operations::SetBlockCreatedTime

Inherits:
SetBlockLastEditedTime show all
Defined in:
lib/notion_rb/operations/set_block_created_time.rb

Constant Summary collapse

OPERATION_NAME =
:set_block_created_time
DEFAULT_PATH =
['created_time'].freeze

Constants inherited from SetBlockLastEditedTime

NotionRb::Operations::SetBlockLastEditedTime::COMMAND_TYPE, NotionRb::Operations::SetBlockLastEditedTime::TABLE

Instance Attribute Summary

Attributes inherited from SetBlockLastEditedTime

#id, #path, #time

Instance Method Summary collapse

Methods inherited from SetBlockLastEditedTime

#args, #commands

Constructor Details

#initialize(id, time, opts = {}) ⇒ SetBlockCreatedTime

Returns a new instance of SetBlockCreatedTime.



9
10
11
12
# File 'lib/notion_rb/operations/set_block_created_time.rb', line 9

def initialize(id, time, opts = {})
  opts[:path] ||= DEFAULT_PATH
  super
end