Class: Google::Apis::TranscoderV1beta1::AnimationFade

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/transcoder_v1beta1/classes.rb,
generated/google/apis/transcoder_v1beta1/representations.rb,
generated/google/apis/transcoder_v1beta1/representations.rb

Overview

Display overlay object with fade animation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnimationFade

Returns a new instance of AnimationFade.



144
145
146
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 144

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#end_time_offsetString

The time to end the fade animation, in seconds. Default: start_time_offset + 1s Corresponds to the JSON property endTimeOffset

Returns:

  • (String)


127
128
129
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 127

def end_time_offset
  @end_time_offset
end

#fade_typeString

Required. Type of fade animation: FADE_IN or FADE_OUT. Corresponds to the JSON property fadeType

Returns:

  • (String)


132
133
134
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 132

def fade_type
  @fade_type
end

#start_time_offsetString

The time to start the fade animation, in seconds. Default: 0 Corresponds to the JSON property startTimeOffset

Returns:

  • (String)


137
138
139
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 137

def start_time_offset
  @start_time_offset
end

#xyGoogle::Apis::TranscoderV1beta1::NormalizedCoordinate

2D normalized coordinates. Default: 0.0, 0.0 Corresponds to the JSON property xy



142
143
144
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 142

def xy
  @xy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



149
150
151
152
153
154
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 149

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