Sha256: c1c3e2b0634856e854856a6bb167bbecf36fbedd2e1e5ac084050131c2023154
Contents?: true
Size: 879 Bytes
Versions: 2
Compression:
Stored size: 879 Bytes
Contents
require 'animoto/postroll' module Animoto class Postroll class CustomFootage < Animoto::Postroll # The URL to a video to insert into this custom footage postroll. # @return [String] attr_accessor :source_url, :start_time, :duration # Creates a new postroll with custom footage at the supplied # URL. # # @param [String] source_url a url to a video file to be inserted into # this custom postroll template # @return [Animoto::Postroll::CustomFootage] def initialize source_url super("custom_footage") @source_url = source_url end # Returns a representation of this postroll as a hash. # # @return [Hash{String=>Object}] def to_hash super.merge({'source_url' => source_url, 'start_time' => start_time, 'duration' => duration}) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
animoto-1.5.6 | ./lib/animoto/postrolls/custom_footage.rb |
animoto-1.5.5 | ./lib/animoto/postrolls/custom_footage.rb |