Class: Google::Apis::YoutubeV3::VideoPlayer
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::VideoPlayer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb
Overview
Player to be used for a video playback.
Instance Attribute Summary collapse
-
#embed_height ⇒ Fixnum
Corresponds to the JSON property
embedHeight. -
#embed_html ⇒ String
An
-
#embed_width ⇒ Fixnum
The embed width Corresponds to the JSON property
embedWidth.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoPlayer
constructor
A new instance of VideoPlayer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VideoPlayer
Returns a new instance of VideoPlayer.
8530 8531 8532 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 8530 def initialize(**args) update!(**args) end |
Instance Attribute Details
#embed_height ⇒ Fixnum
Corresponds to the JSON property embedHeight
8518 8519 8520 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 8518 def @embed_height end |
#embed_html ⇒ String
An
8523 8524 8525 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 8523 def @embed_html end |
#embed_width ⇒ Fixnum
The embed width
Corresponds to the JSON property embedWidth
8528 8529 8530 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 8528 def @embed_width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8535 8536 8537 8538 8539 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 8535 def update!(**args) @embed_height = args[:embed_height] if args.key?(:embed_height) @embed_html = args[:embed_html] if args.key?(:embed_html) @embed_width = args[:embed_width] if args.key?(:embed_width) end |