Class: Google::Apis::TranscoderV1::AnimationFade
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1::AnimationFade
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/transcoder_v1/classes.rb,
lib/google/apis/transcoder_v1/representations.rb,
lib/google/apis/transcoder_v1/representations.rb
Overview
Display overlay object with fade animation.
Instance Attribute Summary collapse
-
#end_time_offset ⇒ String
The time to end the fade animation, in seconds.
-
#fade_type ⇒ String
Required.
-
#start_time_offset ⇒ String
The time to start the fade animation, in seconds.
-
#xy ⇒ Google::Apis::TranscoderV1::NormalizedCoordinate
2D normalized coordinates.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnimationFade
constructor
A new instance of AnimationFade.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AnimationFade
Returns a new instance of AnimationFade.
137 138 139 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 137 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time_offset ⇒ String
The time to end the fade animation, in seconds. Default: start_time_offset
+
1s
Corresponds to the JSON property endTimeOffset
120 121 122 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 120 def end_time_offset @end_time_offset end |
#fade_type ⇒ String
Required. Type of fade animation: FADE_IN
or FADE_OUT
.
Corresponds to the JSON property fadeType
125 126 127 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 125 def fade_type @fade_type end |
#start_time_offset ⇒ String
The time to start the fade animation, in seconds. Default: 0
Corresponds to the JSON property startTimeOffset
130 131 132 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 130 def start_time_offset @start_time_offset end |
#xy ⇒ Google::Apis::TranscoderV1::NormalizedCoordinate
2D normalized coordinates. Default: 0.0, 0.0
Corresponds to the JSON property xy
135 136 137 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 135 def xy @xy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
142 143 144 145 146 147 |
# File 'lib/google/apis/transcoder_v1/classes.rb', line 142 def update!(**args) @end_time_offset = args[:end_time_offset] if args.key?(:end_time_offset) @fade_type = args[:fade_type] if args.key?(:fade_type) @start_time_offset = args[:start_time_offset] if args.key?(:start_time_offset) @xy = args[:xy] if args.key?(:xy) end |