Sha256: 2279d7b95853b7e3a7c0adbbd4cca778bda5fb97536ddb2436406b1932457d9a

Contents?: true

Size: 410 Bytes

Versions: 4

Compression:

Stored size: 410 Bytes

Contents

module FbGraph2
  class Edge
    module Feed
      def feed(params = {})
        posts = self.edge :feed, params
        posts.collect do |post|
          Post.new(post[:id], post).authenticate self.access_token
        end
      end

      def feed!(params = {})
        post = post params, edge: :feed
        Post.new(post[:id], params.merge(post)).authenticate self.access_token
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph2-0.0.4 lib/fb_graph2/edge/feed.rb
fb_graph2-0.0.3 lib/fb_graph2/edge/feed.rb
fb_graph2-0.0.2 lib/fb_graph2/edge/feed.rb
fb_graph2-0.0.1 lib/fb_graph2/edge/feed.rb