Sha256: 45f2745eaefbe05156dc82708fc5b79efe129b57778d23f45d26536a9c8c05cf
Contents?: true
Size: 730 Bytes
Versions: 3
Compression:
Stored size: 730 Bytes
Contents
module Animoto module Assets class Song < Animoto::Assets::Base # The offset in seconds from the beginning denoting where to start # using this song in the video. # @return [Float] attr_accessor :start_time # The duration in seconds of how long this song should play. # @return [Float] attr_accessor :duration # Returns a representation of this Song as a Hash. # # @return [Hash<String,Object>] this asset as a Hash # @see Animoto::Assets::Base#to_hash def to_hash hash = super hash['start_time'] = start_time if start_time hash['duration'] = duration if duration hash end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
animoto-0.1.1.beta1 | ./lib/animoto/assets/song.rb |
animoto-0.1.0.beta1 | ./lib/animoto/assets/song.rb |
animoto-0.1.0.beta0 | ./lib/animoto/assets/song.rb |