Sha256: 163f98b68213c1384ca0fbfa9e8b4fcb56142f95fe21badfe7db31d598dc1183

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 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

1 entries across 1 versions & 1 rubygems

Version Path
notion-sdk-ruby-0.4.0 lib/notion-sdk-ruby/resources/pages.rb