./lib/animoto/resources/video.rb in animoto-1.1.1 vs ./lib/animoto/resources/video.rb in animoto-1.2.0

- old
+ new

@@ -13,15 +13,16 @@ # @see Animoto::Support::StandardEnvelope::ClassMethods#unpack_standard_envelope def self.unpack_standard_envelope body links = unpack_links(body) params = unpack_rendering_parameters(body) super.merge({ - :download_url => links['file'], - :storyboard_url => links['storyboard'], - :format => params['format'], - :framerate => params['framerate'], - :resolution => params['resolution'] + :download_url => links['file'], + :storyboard_url => links['storyboard'], + :cover_image_url => links['cover_image'], + :format => params['format'], + :framerate => params['framerate'], + :resolution => params['resolution'] }) end # The URL to the video file. # @return [String] @@ -33,10 +34,14 @@ # The Storyboard object this video was rendered from. # @return [Resources::Storyboard] attr_reader :storyboard + # In available, the URL to the cover image file. + # @return [String] + attr_reader :cover_image_url + # The format of the video. # @return [String] attr_reader :format # The framerate of the video. @@ -59,9 +64,10 @@ # @see Animoto::Resources::Base#instantiate def instantiate attributes = {} @download_url = attributes[:download_url] @storyboard_url = attributes[:storyboard_url] @storyboard = Animoto::Resources::Storyboard.new(:url => @storyboard_url) if @storyboard_url + @cover_image_url = attributes[:cover_image_url] @format = attributes[:format] @framerate = attributes[:framerate] @resolution = attributes[:resolution] super end \ No newline at end of file