Sha256: fbc044868d6829a0cd8681e176f6f73677b2845924aba9a08fe3bf8260460dc3

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

module Notion
  module Endpoints
    module Pages
      def get_page(id)
        self.class.get("/v1/pages/#{id}")
      end

      def create_page(body)
        self.class.post("/v1/pages", body: body.to_json)
      end

      def update_page(id, body)
        self.class.patch("/v1/pages/#{id}", 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/pages.rb
notion-sdk-ruby-0.2.2 lib/notion/endpoints/pages.rb