Class: Animoto::Resources::Jobs::Directing
- Defined in:
- lib/animoto/resources/jobs/directing.rb
Instance Attribute Summary collapse
-
#storyboard ⇒ Resources::Storyboard
readonly
The Storyboard created by this job.
-
#storyboard_url ⇒ String
readonly
The URL for this storyboard resource created by this job.
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.
14 15 16 |
# File 'lib/animoto/resources/jobs/directing.rb', line 14 def storyboard @storyboard end |
#storyboard_url ⇒ String (readonly)
The URL for this storyboard resource created by this job.
18 19 20 |
# File 'lib/animoto/resources/jobs/directing.rb', line 18 def storyboard_url @storyboard_url end |
Class Method Details
.unpack_standard_envelope(body) ⇒ Hash{Symbol=>Object}
8 9 10 |
# File 'lib/animoto/resources/jobs/directing.rb', line 8 def self.unpack_standard_envelope body super.merge(:storyboard_url => unpack_links(body)['storyboard']) end |
Instance Method Details
#instantiate(attributes = {}) ⇒ Jobs::Directing
22 23 24 25 26 |
# File 'lib/animoto/resources/jobs/directing.rb', line 22 def instantiate attributes = {} @storyboard_url = attributes[:storyboard_url] @storyboard = Animoto::Resources::Storyboard.new(:url => @storyboard_url) if @storyboard_url super end |