Sha256: 770e7fbb7b7203e1debfdaa1470d838180afc6ff50c8bd8bf2f4010e853694b5
Contents?: true
Size: 848 Bytes
Versions: 3
Compression:
Stored size: 848 Bytes
Contents
module Animoto module Resources module Jobs class DirectingAndRendering < Animoto::Resources::Jobs::Base endpoint '/jobs/directing_and_rendering' # @return [Hash<Symbol,Object>] # @see Animoto::Support::StandardEnvelope::ClassMethods#unpack_standard_envelope def self.unpack_standard_envelope body super.merge(:video_url => body['response']['payload'][payload_key]['links']['video']) end attr_reader :video attr_reader :video_url # @return [Jobs::DirectingAndRendering] # @see Animoto::Jobs::Base#instantiate def instantiate attributes = {} @video_url = attributes[:video_url] @video = Animoto::Resources::Video.new(:url => @video_url) if @video_url super end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems