Sha256: dfd0d078570a96b6499a67fa178226d171cc2dabaaf4273eedd3a4d2bd3d6e0a

Contents?: true

Size: 482 Bytes

Versions: 10

Compression:

Stored size: 482 Bytes

Contents

module Animoto
  class DirectingAndRenderingJob < Animoto::Job
    
    endpoint '/jobs/directing_and_rendering'

    def self.unpack_standard_envelope body
      super.merge(:video_url => body['response']['payload'][payload_key]['links']['video'])
    end
    
    attr_reader :video, :video_url
    
    def instantiate attributes = {}
      @video_url = attributes[:video_url]
      @video = Animoto::Video.new(:url => @video_url) if @video_url
      super
    end
    
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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