Sha256: 347b100f82c21d9264a25191b7e48a15bea2a74c51e5774d9fe8581ac15aaadd

Contents?: true

Size: 579 Bytes

Versions: 37

Compression:

Stored size: 579 Bytes

Contents

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

      def video!(options = {})
        video = post(options.merge(:connection => :videos))
        Video.new(video[:id], options.merge(video).merge(
          :access_token => options[:access_token] || self.access_token
        ))
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
fb_graph-2.2.6 lib/fb_graph/connections/videos.rb
fb_graph-2.2.5 lib/fb_graph/connections/videos.rb
fb_graph-2.2.4 lib/fb_graph/connections/videos.rb
fb_graph-2.2.3 lib/fb_graph/connections/videos.rb
fb_graph-2.2.2 lib/fb_graph/connections/videos.rb
fb_graph-2.2.1 lib/fb_graph/connections/videos.rb
fb_graph-2.2.0 lib/fb_graph/connections/videos.rb
fb_graph-2.2.0.beta lib/fb_graph/connections/videos.rb
fb_graph-2.2.0.alpha2 lib/fb_graph/connections/videos.rb
fb_graph-2.2.0.alpha lib/fb_graph/connections/videos.rb
fb_graph-2.1.13 lib/fb_graph/connections/videos.rb
fb_graph-2.1.12 lib/fb_graph/connections/videos.rb
fb_graph-2.1.11 lib/fb_graph/connections/videos.rb
fb_graph-2.1.10 lib/fb_graph/connections/videos.rb
fb_graph-2.1.9 lib/fb_graph/connections/videos.rb
fb_graph-2.1.8 lib/fb_graph/connections/videos.rb
fb_graph-2.1.7 lib/fb_graph/connections/videos.rb
fb_graph-2.1.6 lib/fb_graph/connections/videos.rb
fb_graph-2.1.5 lib/fb_graph/connections/videos.rb
fb_graph-2.1.4 lib/fb_graph/connections/videos.rb