Sha256: 3187d7c602cc310af94b6b893fd05119a11d449b5058e03243a7709a4d07839b

Contents?: true

Size: 331 Bytes

Versions: 2

Compression:

Stored size: 331 Bytes

Contents

module Notion
  module Endpoints
    module Blocks
      def get_block_children(id, params: {})
        self.class.get("/v1/blocks/#{id}/children", query: params)
      end

      def append_block_children(id, body)
        self.class.patch("/v1/blocks/#{id}/children", body: body.to_json)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
notion-sdk-ruby-0.2.3 lib/notion-sdk-ruby/endpoints/blocks.rb
notion-sdk-ruby-0.2.2 lib/notion/endpoints/blocks.rb