Sha256: 4f0d01f8ec0d75c86b7ba6190d3c6868e16dbbca683e2a8bba930924a9fd8ca1

Contents?: true

Size: 396 Bytes

Versions: 6

Compression:

Stored size: 396 Bytes

Contents

module Yt
  module VideoAudit
    class Base
      def initialize(options = {})
        @videos = options[:videos]
      end

      # @return [Fixnum] number of all given videos.
      def total_count
        @videos.count
      end

      # @return [Fixnum] number of videos satisfy given condition.
      def valid_count
        @videos.count {|video| valid? video}
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yt-audit-0.6.0 lib/yt/video_audit/base.rb
yt-audit-0.5.5 lib/yt/video_audit/base.rb
yt-audit-0.5.4 lib/yt/video_audit/base.rb
yt-audit-0.5.3 lib/yt/video_audit/base.rb
yt-audit-0.5.2 lib/yt/video_audit/base.rb
yt-audit-0.5.1 lib/yt/video_audit/base.rb