Sha256: f6fbb4d748bd5e3fd32f79de0e0ade35899bc7dcb454d30ac9e3f3f7c0c61dfd
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
module Animoto class Asset attr_accessor :source_url def initialize source_url, options = {} @source_url = source_url 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_url } end # Returns a representation of this asset as JSON. # # @return [String] this asset as JSON def to_json self.to_hash.to_json end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
animoto-0.0.0.alpha1 | ./lib/animoto/asset.rb |
animoto-0.0.0.alpha0 | ./lib/animoto/asset.rb |