Sha256: 94123e30e36bc6070db0e1e9b7ed121a36e9fff4a8a6eb9f877dc15650daf420
Contents?: true
Size: 371 Bytes
Versions: 1
Compression:
Stored size: 371 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
notion-sdk-ruby-0.4.0 | lib/notion-sdk-ruby/resources/blocks.rb |