Sha256: 31a7957fe9758878fafb26d7e773ef3d1babd5c4599565a9992438173232e9fb
Contents?: true
Size: 388 Bytes
Versions: 2
Compression:
Stored size: 388 Bytes
Contents
module Notion class Blocks def children Children.new end end class Children def list(block_id, query: {}) RequestClient.active_client.get("/v1/blocks/#{block_id}/children", query: query) end def append(block_id, body) RequestClient.active_client.patch("/v1/blocks/#{block_id}/children", body: body.to_json) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notion-sdk-ruby-0.3.1 | lib/notion-sdk-ruby/resources/blocks.rb |
notion-sdk-ruby-0.3.0 | lib/notion-sdk-ruby/resources/blocks.rb |