Class: NotionRuby::API::Pages::Proxy
- Inherits:
-
ResourceProxy
- Object
- ResourceProxy
- NotionRuby::API::Pages::Proxy
- Defined in:
- lib/notion_ruby/api/pages.rb
Instance Attribute Summary
Attributes inherited from ResourceProxy
#connection, #id, #params, #path_prefix
Instance Method Summary collapse
Methods inherited from ResourceProxy
#build_prefix, #initialize, #method_missing, #raw, #respond_to_missing?, #subject
Methods included from CRUD
Constructor Details
This class inherits a constructor from NotionRuby::ResourceProxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class NotionRuby::ResourceProxy
Instance Method Details
#create(params) ⇒ Object
7 8 9 |
# File 'lib/notion_ruby/api/pages.rb', line 7 def create(params) connection.post(path_prefix, params).body end |
#update(params) ⇒ Object
11 12 13 |
# File 'lib/notion_ruby/api/pages.rb', line 11 def update(params) connection.patch(path_prefix, params).body end |