Sha256: 296dec5589267ef71636395b8de365c7cbee824a34b64f3d5df9b9cdcda8980d

Contents?: true

Size: 779 Bytes

Versions: 2

Compression:

Stored size: 779 Bytes

Contents

module Animoto
  class DirectingAndRenderingManifest < Animoto::DirectingManifest
    
    attr_accessor :resolution, :framerate, :format
    
    def initialize options = {}
      super
      @resolution = options[:resolution]
      @framerate  = options[:framerate]
      @format     = options[:format]
    end
    
    def to_hash options = {}
      hash  = super
      directing_job = hash.delete('directing_job')
      hash['directing_and_rendering_job'] = directing_job.merge('rendering_manifest' => { 'rendering_parameters' => {}})
      params = hash['directing_and_rendering_job']['rendering_manifest']['rendering_parameters']
      params['resolution'] = resolution
      params['framerate'] = framerate
      params['format'] = format
      hash
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
animoto-0.0.0.alpha9 ./lib/animoto/directing_and_rendering_manifest.rb
animoto-0.0.0.alpha8 ./lib/animoto/directing_and_rendering_manifest.rb