Module: Freefeed::V1::Comments
- Included in:
- Client
- Defined in:
- lib/freefeed/v1/comments.rb
Instance Method Summary collapse
- #create_comment(comment) ⇒ Object
- #delete_comment(id) ⇒ Object
- #update_comment(id, comment) ⇒ Object
Instance Method Details
#create_comment(comment) ⇒ Object
8 9 10 |
# File 'lib/freefeed/v1/comments.rb', line 8 def create_comment(comment) authenticated_request(:post, "/v1/comments", json: comment) end |
#delete_comment(id) ⇒ Object
16 17 18 |
# File 'lib/freefeed/v1/comments.rb', line 16 def delete_comment(id) authenticated_request(:delete, "/v1/comments/#{id}") end |
#update_comment(id, comment) ⇒ Object
12 13 14 |
# File 'lib/freefeed/v1/comments.rb', line 12 def update_comment(id, comment) authenticated_request(:put, "/v1/comments/#{id}", json: comment) end |