Class: Media::Preset::ProRes::Base
- Inherits:
-
Object
- Object
- Media::Preset::ProRes::Base
- Defined in:
- lib/media/preset/prores.rb
Instance Method Summary collapse
- #call(&block) ⇒ Object
-
#initialize(args) ⇒ Base
constructor
A new instance of Base.
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 |