class NotionRb::Operations::SetBlockType

Constants

COMMAND_TYPE
DEFAULT_VERSION
OPERATION_NAME
TABLE

Attributes

id[R]
type[R]

Public Class Methods

new(id, type) click to toggle source
# File lib/notion_rb/operations/set_block_type.rb, line 13
def initialize(id, type)
  @id = id
  @type = type
end

Public Instance Methods

args() click to toggle source
# File lib/notion_rb/operations/set_block_type.rb, line 29
def args
  {
    type: type,
    version: DEFAULT_VERSION,
    id: id
  }
end
commands() click to toggle source
# File lib/notion_rb/operations/set_block_type.rb, line 18
def commands
  [
    Commands::Factory.build(
      :set,
      id,
      args: args,
      table: TABLE
    )
  ]
end