Method: NotionRubyMapping::ColumnListBlock#block_json

Defined in:
lib/notion_ruby_mapping/blocks/column_list_block.rb

#block_json(not_update: true) ⇒ Hash{String (frozen)->Hash

Returns ].

Parameters:

  • not_update (Boolean) (defaults to: true)

    false when update

Returns:

  • (Hash{String (frozen)->Hash)

    ]



26
27
28
29
30
31
# File 'lib/notion_ruby_mapping/blocks/column_list_block.rb', line 26

def block_json(not_update: true)
  ans = super
  ans[type] = {}
  ans[type]["children"] = @columns.map(&:block_json) if @columns
  ans
end