./lib/animoto/assets/base.rb in animoto-1.2.0 vs ./lib/animoto/assets/base.rb in animoto-1.3.0
- old
+ new
@@ -9,20 +9,21 @@
attr_accessor :source
# Creates a new asset.
#
# @param [String] source the URL of this asset
+ # @param [Hash{Symbol=>Object}] options
# @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 }
+ { 'source_url' => @source, 'type' => self.class.name.split('::').last.underscore }
end
end
end
end
\ No newline at end of file