Class: Animoto::Resources::Jobs::StoryboardUnbundling
- Defined in:
- lib/animoto/resources/jobs/storyboard_unbundling.rb
Instance Attribute Summary collapse
-
#storyboard ⇒ Resources::Storyboard
readonly
The storyboard created by this job.
-
#storyboard_url ⇒ String
readonly
The URL to the storyboard resource.
Attributes inherited from Base
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#completed?, endpoint, #failed?, infer_content_type, infer_endpoint, #pending?
Methods inherited from Base
endpoint, #endpoint, #initialize, #load, load, new, original_new, register
Methods included from Support::StandardEnvelope
Constructor Details
This class inherits a constructor from Animoto::Resources::Base
Instance Attribute Details
#storyboard ⇒ Resources::Storyboard (readonly)
The storyboard created by this job.
17 18 19 |
# File 'lib/animoto/resources/jobs/storyboard_unbundling.rb', line 17 def storyboard @storyboard end |
#storyboard_url ⇒ String (readonly)
The URL to the storyboard resource.
21 22 23 |
# File 'lib/animoto/resources/jobs/storyboard_unbundling.rb', line 21 def storyboard_url @storyboard_url end |
Class Method Details
.unpack_standard_envelope(body) ⇒ Hash{Symbol=>Object}
8 9 10 11 12 13 |
# File 'lib/animoto/resources/jobs/storyboard_unbundling.rb', line 8 def self.unpack_standard_envelope body links = unpack_links(body) super.merge({ :storyboard_url => links['storyboard'] }) end |
Instance Method Details
#instantiate(attributes = {}) ⇒ Jobs::StoryboardUnbundling
25 26 27 28 29 |
# File 'lib/animoto/resources/jobs/storyboard_unbundling.rb', line 25 def instantiate attributes = {} @storyboard_url = attributes[:storyboard_url] @storyboard = Animoto::Resources::Storyboard.new(:url => @storyboard_url) if @storyboard_url super end |