./lib/animoto/resources/jobs/rendering.rb in animoto-0.1.1.beta1 vs ./lib/animoto/resources/jobs/rendering.rb in animoto-1.0.0

- old
+ new

@@ -3,21 +3,35 @@ module Jobs class Rendering < Animoto::Resources::Jobs::Base endpoint '/jobs/rendering' - # @return [Hash<Symbol,Object>] + # @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 => body['response']['payload'][payload_key]['links']['storyboard'], - :video_url => body['response']['payload'][payload_key]['links']['video'] + :storyboard_url => links['storyboard'], + :video_url => links['video'] }) end + # The Storyboard this job will render a video from. + # @return [Resources::Storyboard] attr_reader :storyboard + + # The URL to the storyboard resource. + # @return [String] attr_reader :storyboard_url + + # The Video created by this job. + # @return [Resources::Video] attr_reader :video + + # The URL to the video resource. + # + # @note This URL points to the video *resource* and not the actual video *file*. + # @return [String] attr_reader :video_url # @return [Jobs::Rendering] # @see Animoto::Jobs::Base#instantiate def instantiate attributes = {} \ No newline at end of file