Class: Mio::Model::Extract

Inherits:
Mio::Model show all
Defined in:
lib/mio/model/extract.rb

Instance Attribute Summary

Attributes inherited from Mio::Model

#args, #client, #search

Instance Method Summary collapse

Methods inherited from Mio::Model

#configure, #create, field, #go, #initialize, mappings, nested, #set_enable, set_resource, #set_start, #validate

Constructor Details

This class inherits a constructor from Mio::Model

Instance Method Details

#config_hashObject



24
25
26
27
28
29
30
31
# File 'lib/mio/model/extract.rb', line 24

def config_hash
  {"extract-metadata": false,
    "extract-frames": { "approve-frames": @args.autoApproveFrames,
                        "set-master-frame": @args.masterFrame,
                        "set-frames-on-parent-asset": @args.setFramesOfParentAsset,
                        "fixed-number": @args.numberOfKeyFramesToExtract}
  }
end

#create_hashObject



15
16
17
18
19
20
21
22
# File 'lib/mio/model/extract.rb', line 15

def create_hash
  plugin = 'tv.nativ.mio.enterprise.execution.action.file.impl.extract.DefaultExtractCommand'

  {name: @args.name,
   pluginClass: plugin,
   type: 'extract',
   visibilityIds: @args.visibility}
end