Class: Notion::Generated::Endpoints::Comments
- Inherits:
-
Endpoints::Base
- Object
- Endpoints::Base
- Notion::Generated::Endpoints::Comments
- Defined in:
- lib/notion/generated/endpoints/comments.rb
Instance Method Summary collapse
-
#create(**params, &block) ⇒ Object
Create a comment.
-
#delete(comment_id:, **params, &block) ⇒ Object
Delete a comment.
-
#list(block_id:, **params, &block) ⇒ Object
List comments.
-
#retrieve(comment_id:, **params, &block) ⇒ Object
Retrieve a comment.
-
#update(comment_id:, **params, &block) ⇒ Object
Update a comment.
Methods inherited from Endpoints::Base
#initialize, operation, operations
Constructor Details
This class inherits a constructor from Notion::Endpoints::Base
Instance Method Details
#create(**params, &block) ⇒ Object
Create a comment
17 18 19 20 |
# File 'lib/notion/generated/endpoints/comments.rb', line 17 def create(**params, &block) invoke_operation(:create, params, &block) end |
#delete(comment_id:, **params, &block) ⇒ Object
Delete a comment
41 42 43 44 |
# File 'lib/notion/generated/endpoints/comments.rb', line 41 def delete(comment_id:, **params, &block) params[:comment_id] = comment_id invoke_operation(:delete, params, &block) end |
#list(block_id:, **params, &block) ⇒ Object
List comments
23 24 25 26 |
# File 'lib/notion/generated/endpoints/comments.rb', line 23 def list(block_id:, **params, &block) params[:block_id] = block_id invoke_operation(:list, params, &block) end |
#retrieve(comment_id:, **params, &block) ⇒ Object
Retrieve a comment
29 30 31 32 |
# File 'lib/notion/generated/endpoints/comments.rb', line 29 def retrieve(comment_id:, **params, &block) params[:comment_id] = comment_id invoke_operation(:retrieve, params, &block) end |
#update(comment_id:, **params, &block) ⇒ Object
Update a comment
35 36 37 38 |
# File 'lib/notion/generated/endpoints/comments.rb', line 35 def update(comment_id:, **params, &block) params[:comment_id] = comment_id invoke_operation(:update, params, &block) end |