module NotionRuby::CRUD
Public Instance Methods
create(attributes, &block)
click to toggle source
Create
return json
# File lib/notion_ruby/state_methods.rb, line 17 def create(attributes, &block) connection.post(path_prefix, attributes, &block).body end
get(attributes, &block)
click to toggle source
Create
return json
# File lib/notion_ruby/state_methods.rb, line 9 def get(attributes, &block) connection.get(path_prefix, attributes, &block).body end
patch(attributes, &block)
click to toggle source
Patch
return json
# File lib/notion_ruby/state_methods.rb, line 25 def patch(attributes, &block) connection.patch(path_prefix, attributes, &block).body end