Sha256: e11e4a414b22112b6cb7501a88fa3fecf4bdfcf2427f6b7e68a8b393022ace72

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 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)
      end

      def update_page(id, body)
        self.class.patch("/v1/pages/#{id}", body: body)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notion-sdk-ruby-0.2.1 lib/notion/endpoints/pages.rb