Sha256: 58b50365a898cc6589f842ca4538c99fcb72432856f31e1d62d7027b3e0ef194

Contents?: true

Size: 786 Bytes

Versions: 8

Compression:

Stored size: 786 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_profile' => {}})
      profile = hash['directing_and_rendering_job']['rendering_manifest']['rendering_profile']
      profile['vertical_resolution'] = resolution
      profile['framerate'] = framerate
      profile['format'] = format
      hash
    end
    
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
animoto-0.0.0.alpha7 ./lib/animoto/directing_and_rendering_manifest.rb
animoto-0.0.0.alpha6 ./lib/animoto/directing_and_rendering_manifest.rb
animoto-0.0.0.alpha5 ./lib/animoto/directing_and_rendering_manifest.rb
animoto-0.0.0.alpha4 ./lib/animoto/directing_and_rendering_manifest.rb
animoto-0.0.0.alpha3 ./lib/animoto/directing_and_rendering_manifest.rb
animoto-0.0.0.alpha2 ./lib/animoto/directing_and_rendering_manifest.rb
animoto-0.0.0.alpha1 ./lib/animoto/directing_and_rendering_manifest.rb
animoto-0.0.0.alpha0 ./lib/animoto/directing_and_rendering_manifest.rb