Class: Animoto::Postroll::CustomFootage
- Inherits:
-
Animoto::Postroll
- Object
- Animoto::Postroll
- Animoto::Postroll::CustomFootage
- Defined in:
- lib/animoto/postrolls/custom_footage.rb
Constant Summary
Constants inherited from Animoto::Postroll
POWERED_BY_ANIMOTO, WHITE_LABEL
Instance Attribute Summary collapse
-
#duration ⇒ String
The URL to a video to insert into this custom footage postroll.
-
#source_url ⇒ String
The URL to a video to insert into this custom footage postroll.
-
#start_time ⇒ String
The URL to a video to insert into this custom footage postroll.
Attributes inherited from Animoto::Postroll
Instance Method Summary collapse
-
#initialize(source_url) ⇒ Animoto::Postroll::CustomFootage
constructor
Creates a new postroll with custom footage at the supplied URL.
-
#to_hash ⇒ Hash{String=>Object}
Returns a representation of this postroll as a hash.
Methods inherited from Animoto::Postroll
Constructor Details
#initialize(source_url) ⇒ Animoto::Postroll::CustomFootage
Creates a new postroll with custom footage at the supplied URL.
17 18 19 20 |
# File 'lib/animoto/postrolls/custom_footage.rb', line 17 def initialize source_url super("custom_footage") @source_url = source_url end |
Instance Attribute Details
#duration ⇒ String
The URL to a video to insert into this custom footage postroll.
9 10 11 |
# File 'lib/animoto/postrolls/custom_footage.rb', line 9 def duration @duration end |
#source_url ⇒ String
The URL to a video to insert into this custom footage postroll.
9 10 11 |
# File 'lib/animoto/postrolls/custom_footage.rb', line 9 def source_url @source_url end |
#start_time ⇒ String
The URL to a video to insert into this custom footage postroll.
9 10 11 |
# File 'lib/animoto/postrolls/custom_footage.rb', line 9 def start_time @start_time end |
Instance Method Details
#to_hash ⇒ Hash{String=>Object}
Returns a representation of this postroll as a hash.
25 26 27 |
# File 'lib/animoto/postrolls/custom_footage.rb', line 25 def to_hash super.merge({'source_url' => source_url, 'start_time' => start_time, 'duration' => duration}) end |