Sha256: 49e1a3c272fad3c86bb238387a43bce6137a26f5c7acff43459355dfa371f53d

Contents?: true

Size: 347 Bytes

Versions: 9

Compression:

Stored size: 347 Bytes

Contents

module FbGraph
  module Connections
    module Likes
      def likes(options = {})
        likes = FbGraph::Collection.new(get(options.merge(:connection => 'likes')))
        likes.map! do |like|
          Page.new(like.delete(:id), like)
        end
      end

      # NOTE: likes! is defined in fb_graph/connections/comments.rb
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fb_graph-0.2.2 lib/fb_graph/connections/likes.rb
fb_graph-0.2.1 lib/fb_graph/connections/likes.rb
fb_graph-0.2.0 lib/fb_graph/connections/likes.rb
fb_graph-0.1.3 lib/fb_graph/connections/likes.rb
fb_graph-0.1.2 lib/fb_graph/connections/likes.rb
fb_graph-0.1.1 lib/fb_graph/connections/likes.rb
fb_graph-0.1.0 lib/fb_graph/connections/likes.rb
fb_graph-0.0.8 lib/fb_graph/connections/likes.rb
fb_graph-0.0.7 lib/fb_graph/connections/likes.rb