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

- old
+ new

@@ -3,16 +3,21 @@ module Jobs class Directing < Animoto::Resources::Jobs::Base endpoint '/jobs/directing' - # @return [Hash<Symbol,Object>] + # @return [Hash{Symbol=>Object}] # @see Animoto::Support::StandardEnvelope::ClassMethods#unpack_standard_envelope def self.unpack_standard_envelope body - super.merge(:storyboard_url => body['response']['payload'][payload_key]['links']['storyboard']) + super.merge(:storyboard_url => unpack_links(body)['storyboard']) end + # The Storyboard created by this job. + # @return [Resources::Storyboard] attr_reader :storyboard + + # The URL for this storyboard resource created by this job. + # @return [String] attr_reader :storyboard_url # @return [Jobs::Directing] # @see Animoto::Jobs::Base#instantiate def instantiate attributes = {} \ No newline at end of file