Sha256: a5b9ee318bb8d7213b971e530f76943400510600615a1a07a5b82135bb8f0fec

Contents?: true

Size: 313 Bytes

Versions: 4

Compression:

Stored size: 313 Bytes

Contents

module VimeoRuby
  class User < Base
    class UploadedVideoCollection
      attr_reader :videos

      def initialize(videos_array)
        @videos = videos_array.map do |video_data|
          Video.new(attrs: video_data)
        end
      end

      def empty?
        videos.empty?
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vimeo_ruby-0.5.0 lib/vimeo_ruby/user/uploaded_video_collection.rb
vimeo_ruby-0.4.3 lib/vimeo_ruby/user/uploaded_video_collection.rb
vimeo_ruby-0.4.2 lib/vimeo_ruby/user/uploaded_video_collection.rb
vimeo_ruby-0.4.1 lib/vimeo_ruby/user/uploaded_video_collection.rb