Class: EhbrsRubyUtils::Videos2::Unsupported::File

Inherits:
EhbrsRubyUtils::Videos::File show all
Includes:
CheckSupport, Fix
Defined in:
lib/ehbrs_ruby_utils/videos2/unsupported/file.rb,
lib/ehbrs_ruby_utils/videos2/unsupported/file/fix.rb

Defined Under Namespace

Modules: Fix

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 EhbrsRubyUtils::Videos::File

from_file, #lyrics_by_provider

Constructor Details

#initialize(file, options) ⇒ File

Returns a new instance of File.



17
18
19
20
# File 'lib/ehbrs_ruby_utils/videos2/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_ruby_utils/videos2/unsupported/file.rb', line 15

def options
  @options
end

Instance Method Details

#all_fixesObject



34
35
36
# File 'lib/ehbrs_ruby_utils/videos2/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_ruby_utils/videos2/unsupported/file.rb', line 30

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


22
23
24
25
26
27
28
# File 'lib/ehbrs_ruby_utils/videos2/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_ruby_utils/videos2/unsupported/file.rb', line 38

def check_set_key
  :file_check_set
end