Class: SocialcastApi::Comment
- Defined in:
- lib/socialcast-api/base.rb
Defined Under Namespace
Classes: Like
Instance Method Summary collapse
Instance Method Details
#like ⇒ Object
66 67 68 |
# File 'lib/socialcast-api/base.rb', line 66 def like Comment.post(id.to_s + '/likes') end |
#unlike ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/socialcast-api/base.rb', line 70 def unlike likedbyme = likes.select {|alike| alike.unlikable}.first if likedbyme likedbyme. = {:message_id => , :comment_id => self.id} likedbyme.destroy end end |