Sha256: eb17bd089204682eb0acdd5c919ff65c6d8ce8af8b79e6a39f05e3786cefecd7

Contents?: true

Size: 497 Bytes

Versions: 10

Compression:

Stored size: 497 Bytes

Contents

module Animoto
  class DirectingJob < Animoto::Job
    
    endpoint '/jobs/directing'

    def self.unpack_standard_envelope body
      super.merge(:storyboard_url => body['response']['payload'][payload_key]['links']['storyboard'])
    end
    
    attr_reader :storyboard, :storyboard_url

    def instantiate attributes = {}
      @storyboard_url = attributes[:storyboard_url]
      @storyboard = Animoto::Storyboard.new(:url => @storyboard_url) if @storyboard_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_job.rb
animoto-0.0.0.alpha8 ./lib/animoto/directing_job.rb
animoto-0.0.0.alpha7 ./lib/animoto/directing_job.rb
animoto-0.0.0.alpha6 ./lib/animoto/directing_job.rb
animoto-0.0.0.alpha5 ./lib/animoto/directing_job.rb
animoto-0.0.0.alpha4 ./lib/animoto/directing_job.rb
animoto-0.0.0.alpha3 ./lib/animoto/directing_job.rb
animoto-0.0.0.alpha2 ./lib/animoto/directing_job.rb
animoto-0.0.0.alpha1 ./lib/animoto/directing_job.rb
animoto-0.0.0.alpha0 ./lib/animoto/directing_job.rb