Class: Ehbrs::Videos::Unsupported::File

Inherits:
File
  • Object
show all
Includes:
CheckSupport, Fix
Defined in:
lib/ehbrs/videos/unsupported/file.rb,
lib/ehbrs/videos/unsupported/file/fix.rb

Defined Under Namespace

Modules: Fix

Constant Summary

Constants inherited from File

File::TIME_PATTERN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Fix

#check_fix

Methods included from CheckSupport

#aggressions_banner, #ffmpeg_fix_args, #passed?

Methods inherited from File

seconds_to_time, time_to_seconds

Constructor Details

#initialize(file, options) ⇒ File

Returns a new instance of File.



17
18
19
20
# File 'lib/ehbrs/videos/unsupported/file.rb', line 17

def initialize(file, options)
  super file
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



15
16
17
# File 'lib/ehbrs/videos/unsupported/file.rb', line 15

def options
  @options
end

Instance Method Details

#all_fixesObject



34
35
36
# File 'lib/ehbrs/videos/unsupported/file.rb', line 34

def all_fixes
  fixes + tracks.flat_map(&:fixes)
end

#all_passed?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/ehbrs/videos/unsupported/file.rb', line 30

def all_passed?
  passed? && tracks.all?(&:passed?)
end


22
23
24
25
26
27
28
# File 'lib/ehbrs/videos/unsupported/file.rb', line 22

def banner
  infov 'File', path
  pad_speaker do
    aggressions_banner('Self')
    tracks.each(&:banner)
  end
end

#check_set_keyObject



38
39
40
# File 'lib/ehbrs/videos/unsupported/file.rb', line 38

def check_set_key
  :file_check_set
end