Class: Google::Apis::TranscoderV1beta1::Animation

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

Overview

Animation types.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Animation

Returns a new instance of Animation.



86
87
88
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 86

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

Instance Attribute Details

#animation_endGoogle::Apis::TranscoderV1beta1::AnimationEnd

End previous overlay animation from the video. Without AnimationEnd, the overlay object will keep the state of previous animation until the end of the video. Corresponds to the JSON property animationEnd



74
75
76
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 74

def animation_end
  @animation_end
end

#animation_fadeGoogle::Apis::TranscoderV1beta1::AnimationFade

Display overlay object with fade animation. Corresponds to the JSON property animationFade



79
80
81
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 79

def animation_fade
  @animation_fade
end

#animation_staticGoogle::Apis::TranscoderV1beta1::AnimationStatic

Display static overlay object. Corresponds to the JSON property animationStatic



84
85
86
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 84

def animation_static
  @animation_static
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



91
92
93
94
95
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 91

def update!(**args)
  @animation_end = args[:animation_end] if args.key?(:animation_end)
  @animation_fade = args[:animation_fade] if args.key?(:animation_fade)
  @animation_static = args[:animation_static] if args.key?(:animation_static)
end