Sha256: 5aae6aa356a84c2dd010c0e7cb44620dc232e76d2d73045d99c271f755ab7fa2

Contents?: true

Size: 354 Bytes

Versions: 3

Compression:

Stored size: 354 Bytes

Contents

module Notion
  class Pages
    def retrieve(id)
      RequestClient.active_client.get("/v1/pages/#{id}")
    end

    def create(body)
      RequestClient.active_client.post("/v1/pages", body: body.to_json)
    end

    def update(id, body)
      RequestClient.active_client.patch("/v1/pages/#{id}", body: body.to_json)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
notion-sdk-ruby-0.4.1 lib/notion-sdk-ruby/resources/pages.rb
notion-sdk-ruby-0.3.1 lib/notion-sdk-ruby/resources/pages.rb
notion-sdk-ruby-0.3.0 lib/notion-sdk-ruby/resources/pages.rb