Sha256: 316a8e9cd4069d6c9cb389652401371e2a9289b59aab196716a11a32d9389594
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
module Animoto module Assets class Footage < Animoto::Assets::Base include Support::Visual include Support::Coverable # Whether or not to mix the audio of this footage with the video's soundtrack. # @return [Boolean] attr_accessor :audio_mix # The time in seconds of where to start extracting a clip from this footage to # add to the video. # @return [Float] attr_accessor :start_time # The duration in seconds of how long this footage should run in the video. # @return [Float] attr_accessor :duration # Returns a representation of this Footage as a Hash. # # @return [Hash{String=>Object}] this asset as a Hash # @see Animoto::Support::Visual#to_hash # @see Animoto::Assets::Base#to_hash def to_hash hash = super hash['audio_mix'] = 'MIX' if audio_mix 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/footage.rb |
animoto-1.1.1 | ./lib/animoto/assets/footage.rb |
animoto-1.1.0 | ./lib/animoto/assets/footage.rb |
animoto-1.0.0 | ./lib/animoto/assets/footage.rb |