Sha256: 48df69c8c10ebe0151c5e7b28b6ae75d6601a172dfa5277ee5eae24bd0c2dd66

Contents?: true

Size: 356 Bytes

Versions: 2

Compression:

Stored size: 356 Bytes

Contents

module Animoto
  class Song < Animoto::Asset
    
    attr_accessor :start_time, :duration, :title, :artist
    
    def to_hash
      hash = super
      hash['start_time'] = start_time if start_time
      hash['duration'] = duration if duration
      hash['title'] = title if title
      hash['artist'] = artist if artist
      hash
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
animoto-0.0.0.alpha1 ./lib/animoto/song.rb
animoto-0.0.0.alpha0 ./lib/animoto/song.rb