Sha256: 6c6e8bfc1ed6900d8adde1cf34e3aedd8455a386ab0edc2b0a7dd412bee00ae6
Contents?: true
Size: 627 Bytes
Versions: 3
Compression:
Stored size: 627 Bytes
Contents
module Animoto module Assets # @abstract class Base # The URL of this asset. # @return [String] attr_accessor :source # Creates a new asset. # # @param [String] source the URL of this asset # @return [Assets::Base] the asset def initialize source, options = {} @source = source end # Returns a representation of this asset as a Hash. Used mainly for generating # manifests. # # @return [Hash<String,Object>] this asset as a Hash def to_hash { 'source_url' => @source } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
animoto-0.1.1.beta1 | ./lib/animoto/assets/base.rb |
animoto-0.1.0.beta1 | ./lib/animoto/assets/base.rb |
animoto-0.1.0.beta0 | ./lib/animoto/assets/base.rb |