class Notion::Pages
Public Instance Methods
create(body)
click to toggle source
# File lib/notion-sdk-ruby/resources/pages.rb, line 7 def create(body) RequestClient.active_client.post("/v1/pages", body: body.to_json) end
retrieve(id)
click to toggle source
# File lib/notion-sdk-ruby/resources/pages.rb, line 3 def retrieve(id) RequestClient.active_client.get("/v1/pages/#{id}") end
update(id, body)
click to toggle source
# File lib/notion-sdk-ruby/resources/pages.rb, line 11 def update(id, body) RequestClient.active_client.patch("/v1/pages/#{id}", body: body.to_json) end