Sha256: eec337794aa26e23fe22f0cc1dac069f4dadbb962ec47f1c6d0736d050eed810

Contents?: true

Size: 379 Bytes

Versions: 4

Compression:

Stored size: 379 Bytes

Contents

module FbGraph
  module Connections
    module Videos
      def videos(options = {})
        videos = FbGraph::Collection.new(get(options.merge(:connection => 'videos')))
        videos.map! do |video|
          Video.new(video.delete(:id), video.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-0.4.2 lib/fb_graph/connections/videos.rb
fb_graph-0.4.1 lib/fb_graph/connections/videos.rb
fb_graph-0.4.0 lib/fb_graph/connections/videos.rb
fb_graph-0.3.0 lib/fb_graph/connections/videos.rb