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.



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

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)


107
108
109
# File 'lib/google/apis/transcoder_v1/classes.rb', line 107

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)


112
113
114
# File 'lib/google/apis/transcoder_v1/classes.rb', line 112

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)


117
118
119
# File 'lib/google/apis/transcoder_v1/classes.rb', line 117

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



122
123
124
# File 'lib/google/apis/transcoder_v1/classes.rb', line 122

def xy
  @xy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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