Module: NotionRuby::CRUD

Included in:
ResourceProxy
Defined in:
lib/notion_ruby/state_methods.rb

Instance Method Summary collapse

Instance Method Details

#create(attributes, &block) ⇒ Object

Create

return json



17
18
19
# File 'lib/notion_ruby/state_methods.rb', line 17

def create(attributes, &block)
  connection.post(path_prefix, attributes, &block).body
end

#get(attributes, &block) ⇒ Object

Create

return json



9
10
11
# File 'lib/notion_ruby/state_methods.rb', line 9

def get(attributes, &block)
  connection.get(path_prefix, attributes, &block).body
end

#patch(attributes, &block) ⇒ Object

Patch

return json



25
26
27
# File 'lib/notion_ruby/state_methods.rb', line 25

def patch(attributes, &block)
  connection.patch(path_prefix, attributes, &block).body
end