module Rvine::Client::Posts

Public Instance Methods

comment(post_id, prams={}) click to toggle source
# 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={}) click to toggle source
# File lib/rvine/client/posts.rb, line 36
def delete_post(post_id, prams={})
  delete "posts/#{post_id}", params
end
like(post_id, prams={}) click to toggle source
# File lib/rvine/client/posts.rb, line 4
def like(post_id, prams={})
  post "posts/#{post_id}/likes", params
end
post(prams={}) click to toggle source
# File lib/rvine/client/posts.rb, line 32
def post(prams={})
  post "posts", params
end
report(post_id, prams={}) click to toggle source
# File lib/rvine/client/posts.rb, line 28
def report(post_id, prams={})
  post "posts/#{post_id}/complaints", params
end
revine(post_id, prams={}) click to toggle source
# 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={}) click to toggle source
# 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={}) click to toggle source
# 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={}) click to toggle source
# File lib/rvine/client/posts.rb, line 24
def unrevine(post_id, revine_id, prams={})
  delete "posts/#{post_id}/repost/#{revine_id}", params
end