Class: Media::Preset::ProRes::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/media/preset/prores.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Base

Returns a new instance of Base.



14
15
16
17
18
19
20
21
22
# File 'lib/media/preset/prores.rb', line 14

def initialize(args)
  @width  = args.fetch(:width) {raise 'width required'}
  @height = args.fetch(:height) {raise 'height required'}
  
  @profile = args.fetch(:profile) {raise 'profile required'}

  @input  = args.fetch(:input) {raise 'input required'}
  @output = args.fetch(:output) {raise 'output required'}
end

Instance Method Details

#call(&block) ⇒ Object



24
25
26
# File 'lib/media/preset/prores.rb', line 24

def call(&block)
  conversion.call(&block)
end