Class: Animoto::Resources::Jobs::StoryboardBundling

Inherits:
Base
  • Object
show all
Defined in:
lib/animoto/resources/jobs/storyboard_bundling.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#errors, #state, #url

Attributes inherited from Base

#errors, #url

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

find_class_for, included

Constructor Details

This class inherits a constructor from Animoto::Resources::Base

Instance Attribute Details

#bundle_urlString (readonly)

The URL to the storyboard resource.

Returns:

  • (String)


17
18
19
# File 'lib/animoto/resources/jobs/storyboard_bundling.rb', line 17

def bundle_url
  @bundle_url
end

Class Method Details

.unpack_standard_envelope(body) ⇒ Hash{Symbol=>Object}

Returns:

  • (Hash{Symbol=>Object})

See Also:

  • Support::StandardEvelope::ClassMethods#unpack_standard_envelope


8
9
10
11
12
13
# File 'lib/animoto/resources/jobs/storyboard_bundling.rb', line 8

def self.unpack_standard_envelope body
  links = unpack_links(body)
  super.merge({
    :bundle_url => links['bundle']
  })
end

Instance Method Details

#instantiate(attributes = {}) ⇒ Jobs::StoryboardBundling

Returns:

See Also:

  • Jobs::Base#instantiate


21
22
23
24
# File 'lib/animoto/resources/jobs/storyboard_bundling.rb', line 21

def instantiate attributes = {}
  @bundle_url = attributes[:bundle_url]
  super
end