Sha256: 60002aefd9d065cf1c0cdfe1d79fbd258ba2f555027ecf685b6fe66d8ebaf1b9
Contents?: true
Size: 731 Bytes
Versions: 4
Compression:
Stored size: 731 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
animoto-1.2.0 | ./lib/animoto/assets/song.rb |
animoto-1.1.1 | ./lib/animoto/assets/song.rb |
animoto-1.1.0 | ./lib/animoto/assets/song.rb |
animoto-1.0.0 | ./lib/animoto/assets/song.rb |