Class: Google::Apis::TranscoderV1::AnimationFade

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_offsetString

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

Returns:

  • (String)


120
121
122
# File 'lib/google/apis/transcoder_v1/classes.rb', line 120

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)


125
126
127
# File 'lib/google/apis/transcoder_v1/classes.rb', line 125

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)


130
131
132
# File 'lib/google/apis/transcoder_v1/classes.rb', line 130

def start_time_offset
  @start_time_offset
end

#xyGoogle::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