Class: VideoConverter::Faststart

Inherits:
Object
  • Object
show all
Defined in:
lib/video_converter/faststart.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output) ⇒ Faststart

Returns a new instance of Faststart.



13
14
15
# File 'lib/video_converter/faststart.rb', line 13

def initialize output
  self.output = output
end

Class Attribute Details

.binObject

Returns the value of attribute bin.



6
7
8
# File 'lib/video_converter/faststart.rb', line 6

def bin
  @bin
end

.commandObject

Returns the value of attribute command.



6
7
8
# File 'lib/video_converter/faststart.rb', line 6

def command
  @command
end

Instance Attribute Details

#outputObject

Returns the value of attribute output.



11
12
13
# File 'lib/video_converter/faststart.rb', line 11

def output
  @output
end

Instance Method Details

#runObject



17
18
19
20
21
# File 'lib/video_converter/faststart.rb', line 17

def run
  success = true
  success &&= Command.new(self.class.command, prepare_params(output)).execute
  success
end