Sha256: 878ee3d48e14a06349fc260f826d2e5661589ecbda1e88d426946e3d623345f2

Contents?: true

Size: 361 Bytes

Versions: 3

Compression:

Stored size: 361 Bytes

Contents

module Animoto
  class Asset
    
    attr_accessor :source
    
    def initialize source, options = {}
      @source = source
    end
    
    # Returns a representation of this asset as a Hash. Used mainly for generating
    # manifests.
    #
    # @return [Hash] this asset as a Hash
    def to_hash
      { 'source_url' => @source }
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
animoto-0.0.0.alpha9 ./lib/animoto/asset.rb
animoto-0.0.0.alpha8 ./lib/animoto/asset.rb
animoto-0.0.0.alpha7 ./lib/animoto/asset.rb