Module: GSGraph::Connections::Likes::Likable

Included in:
Album, GSGraph::Checkin, GSGraph::Comment, Link, Note, OpenGraph::Action, Photo, Post, Status, UserAchievement, Video
Defined in:
lib/gs_graph/connections/likes.rb

Instance Method Summary collapse

Instance Method Details

#like!(options = {}) ⇒ Object



19
20
21
# File 'lib/gs_graph/connections/likes.rb', line 19

def like!(options = {})
  post options.merge(:connection => :likes)
end

#unlike!(options = {}) ⇒ Object



23
24
25
# File 'lib/gs_graph/connections/likes.rb', line 23

def unlike!(options = {})
  destroy options.merge(:connection => :likes)
end