Sha256: dc703f24dd54fc31215911ead87bd5a08080d0a8cd9a9d65c308cd17b5dacbea

Contents?: true

Size: 1.03 KB

Versions: 12

Compression:

Stored size: 1.03 KB

Contents

module Animoto
  module Resources
    module Jobs
      class StoryboardUnbundling < Animoto::Resources::Jobs::Base
        
        # @return [Hash{Symbol=>Object}]
        # @see Animoto::Support::StandardEvelope::ClassMethods#unpack_standard_envelope
        def self.unpack_standard_envelope body
          links = unpack_links(body)
          super.merge({
            :storyboard_url => links['storyboard']
          })
        end
        
        # The storyboard created by this job.
        # @return [Resources::Storyboard]
        attr_reader :storyboard

        # The URL to the storyboard resource.
        # @return [String]
        attr_reader :storyboard_url
                
        # @return [Jobs::StoryboardUnbundling]
        # @see Animoto::Jobs::Base#instantiate
        def instantiate attributes = {}
          @storyboard_url = attributes[:storyboard_url]
          @storyboard     = Animoto::Resources::Storyboard.new(:url => @storyboard_url) if @storyboard_url
          super
        end
      
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
animoto-1.5.6 ./lib/animoto/resources/jobs/storyboard_unbundling.rb
animoto-1.5.5 ./lib/animoto/resources/jobs/storyboard_unbundling.rb
animoto-1.5.4 ./lib/animoto/resources/jobs/storyboard_unbundling.rb
animoto-1.5.3 ./lib/animoto/resources/jobs/storyboard_unbundling.rb
animoto-1.5.2 ./lib/animoto/resources/jobs/storyboard_unbundling.rb
animoto-1.5.1 ./lib/animoto/resources/jobs/storyboard_unbundling.rb
animoto-1.5.0 ./lib/animoto/resources/jobs/storyboard_unbundling.rb
animoto-1.3.1 ./lib/animoto/resources/jobs/storyboard_unbundling.rb
animoto-1.3.0 ./lib/animoto/resources/jobs/storyboard_unbundling.rb
animoto-1.2.0 ./lib/animoto/resources/jobs/storyboard_unbundling.rb
animoto-1.1.1 ./lib/animoto/resources/jobs/storyboard_unbundling.rb
animoto-1.1.0 ./lib/animoto/resources/jobs/storyboard_unbundling.rb