Sha256: f38ceb8420eda6251ae63e06f1998ec07ad3e7cb143610d2dfda10b830bacad9

Contents?: true

Size: 415 Bytes

Versions: 8

Compression:

Stored size: 415 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 = self.post params, edge: :feed
        Post.new(post[:id], params.merge(post)).authenticate self.access_token
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fb_graph2-0.1.0 lib/fb_graph2/edge/feed.rb
fb_graph2-0.0.11 lib/fb_graph2/edge/feed.rb
fb_graph2-0.0.10 lib/fb_graph2/edge/feed.rb
fb_graph2-0.0.9 lib/fb_graph2/edge/feed.rb
fb_graph2-0.0.8 lib/fb_graph2/edge/feed.rb
fb_graph2-0.0.7 lib/fb_graph2/edge/feed.rb
fb_graph2-0.0.6 lib/fb_graph2/edge/feed.rb
fb_graph2-0.0.5 lib/fb_graph2/edge/feed.rb