Module: Rvine::Client::Posts
- Included in:
- Rvine::Client
- Defined in:
- lib/rvine/client/posts.rb
Instance Method Summary collapse
- #comment(post_id, prams = {}) ⇒ Object
- #delete_post(post_id, prams = {}) ⇒ Object
- #like(post_id, prams = {}) ⇒ Object
- #post(prams = {}) ⇒ Object
- #report(post_id, prams = {}) ⇒ Object
- #revine(post_id, prams = {}) ⇒ Object
- #uncomment(post_id, comment_id, prams = {}) ⇒ Object
- #unlike(post_id, prams = {}) ⇒ Object
- #unrevine(post_id, revine_id, prams = {}) ⇒ Object
Instance Method Details
#comment(post_id, prams = {}) ⇒ Object
12 13 14 |
# File 'lib/rvine/client/posts.rb', line 12 def comment(post_id, prams={}) post "posts/#{post_id}/comments", params end |
#delete_post(post_id, prams = {}) ⇒ Object
36 37 38 |
# File 'lib/rvine/client/posts.rb', line 36 def delete_post(post_id, prams={}) delete "posts/#{post_id}", params end |
#like(post_id, prams = {}) ⇒ Object
4 5 6 |
# File 'lib/rvine/client/posts.rb', line 4 def like(post_id, prams={}) post "posts/#{post_id}/likes", params end |
#post(prams = {}) ⇒ Object
32 33 34 |
# File 'lib/rvine/client/posts.rb', line 32 def post(prams={}) post "posts", params end |
#report(post_id, prams = {}) ⇒ Object
28 29 30 |
# File 'lib/rvine/client/posts.rb', line 28 def report(post_id, prams={}) post "posts/#{post_id}/complaints", params end |
#revine(post_id, prams = {}) ⇒ Object
20 21 22 |
# File 'lib/rvine/client/posts.rb', line 20 def revine(post_id, prams={}) post "posts/#{post_id}/repost", params end |
#uncomment(post_id, comment_id, prams = {}) ⇒ Object
16 17 18 |
# File 'lib/rvine/client/posts.rb', line 16 def uncomment(post_id, comment_id, prams={}) delete "posts/#{post_id}/comments/#{comment_id}", params end |
#unlike(post_id, prams = {}) ⇒ Object
8 9 10 |
# File 'lib/rvine/client/posts.rb', line 8 def unlike(post_id, prams={}) delete "posts/#{post_id}/likes", params end |
#unrevine(post_id, revine_id, prams = {}) ⇒ Object
24 25 26 |
# File 'lib/rvine/client/posts.rb', line 24 def unrevine(post_id, revine_id, prams={}) delete "posts/#{post_id}/repost/#{revine_id}", params end |