Class: Google::Apis::YoutubeV3::InvideoPosition

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

Overview

Describes the spatial position of a visual widget inside a video. It is a union of various position types, out of which only will be set one.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InvideoPosition

Returns a new instance of InvideoPosition.


3937
3938
3939
# File 'generated/google/apis/youtube_v3/classes.rb', line 3937

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

Instance Attribute Details

#corner_positionString

Describes in which corner of the video the visual widget will appear. Corresponds to the JSON property cornerPosition

Returns:

  • (String)

3930
3931
3932
# File 'generated/google/apis/youtube_v3/classes.rb', line 3930

def corner_position
  @corner_position
end

#typeString

Defines the position type. Corresponds to the JSON property type

Returns:

  • (String)

3935
3936
3937
# File 'generated/google/apis/youtube_v3/classes.rb', line 3935

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3942
3943
3944
3945
# File 'generated/google/apis/youtube_v3/classes.rb', line 3942

def update!(**args)
  @corner_position = args[:corner_position] if args.key?(:corner_position)
  @type = args[:type] if args.key?(:type)
end