Sha256: 7de688acf1d5297b85308a39d71f019a9b58ed17256816183b34a43427164e0b

Contents?: true

Size: 492 Bytes

Versions: 37

Compression:

Stored size: 492 Bytes

Contents

module FbGraph2
  class Edge
    module Videos
      def videos(*args)
        params = args.extract_options!
        videos = self.edge :videos, params, edge_scope: args.first
        videos.collect! do |video|
          Video.new(video[:id], video).authenticate self.access_token
        end
      end

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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 lib/fb_graph2/edge/videos.rb
fb_graph2-1.2.0 lib/fb_graph2/edge/videos.rb
fb_graph2-1.1.1 lib/fb_graph2/edge/videos.rb
fb_graph2-1.1.0 lib/fb_graph2/edge/videos.rb
fb_graph2-1.0.1 lib/fb_graph2/edge/videos.rb
fb_graph2-1.0.0 lib/fb_graph2/edge/videos.rb
fb_graph2-0.9.1 lib/fb_graph2/edge/videos.rb
fb_graph2-0.9.0 lib/fb_graph2/edge/videos.rb
fb_graph2-0.8.0 lib/fb_graph2/edge/videos.rb
fb_graph2-0.7.9 lib/fb_graph2/edge/videos.rb
fb_graph2-0.7.8 lib/fb_graph2/edge/videos.rb
fb_graph2-0.7.7 lib/fb_graph2/edge/videos.rb
fb_graph2-0.7.6 lib/fb_graph2/edge/videos.rb
fb_graph2-0.7.5 lib/fb_graph2/edge/videos.rb
fb_graph2-0.7.4 lib/fb_graph2/edge/videos.rb
fb_graph2-0.7.3 lib/fb_graph2/edge/videos.rb
fb_graph2-0.7.2 lib/fb_graph2/edge/videos.rb
fb_graph2-0.7.1 lib/fb_graph2/edge/videos.rb
fb_graph2-0.7.0 lib/fb_graph2/edge/videos.rb
fb_graph2-0.6.2 lib/fb_graph2/edge/videos.rb