Sha256: eb17bd089204682eb0acdd5c919ff65c6d8ce8af8b79e6a39f05e3786cefecd7
Contents?: true
Size: 497 Bytes
Versions: 10
Compression:
Stored size: 497 Bytes
Contents
module Animoto class DirectingJob < Animoto::Job endpoint '/jobs/directing' def self.unpack_standard_envelope body super.merge(:storyboard_url => body['response']['payload'][payload_key]['links']['storyboard']) end attr_reader :storyboard, :storyboard_url def instantiate attributes = {} @storyboard_url = attributes[:storyboard_url] @storyboard = Animoto::Storyboard.new(:url => @storyboard_url) if @storyboard_url super end end end
Version data entries
10 entries across 10 versions & 1 rubygems