Class: Yt::VideoAudit::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/yt/video_audit/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base


4
5
6
# File 'lib/yt/video_audit/base.rb', line 4

def initialize(options = {})
  @videos = options[:videos]
end

Instance Method Details

#total_countFixnum


9
10
11
# File 'lib/yt/video_audit/base.rb', line 9

def total_count
  @videos.size
end

#valid_countFixnum


14
15
16
# File 'lib/yt/video_audit/base.rb', line 14

def valid_count
  @videos.count {|video| valid? video}
end