Class: Google::Apis::YoutubeV3::InvideoPosition
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::InvideoPosition
- 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
-
#corner_position ⇒ String
Describes in which corner of the video the visual widget will appear.
-
#type ⇒ String
Defines the position type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InvideoPosition
constructor
A new instance of InvideoPosition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InvideoPosition
Returns a new instance of InvideoPosition
3386 3387 3388 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 3386 def initialize(**args) update!(**args) end |
Instance Attribute Details
#corner_position ⇒ String
Describes in which corner of the video the visual widget will appear.
Corresponds to the JSON property cornerPosition
3379 3380 3381 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 3379 def corner_position @corner_position end |
#type ⇒ String
Defines the position type.
Corresponds to the JSON property type
3384 3385 3386 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 3384 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3391 3392 3393 3394 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 3391 def update!(**args) @corner_position = args[:corner_position] if args.key?(:corner_position) @type = args[:type] if args.key?(:type) end |