Class: Google::Apis::FormsV1::VideoLink
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::VideoLink
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/forms_v1/classes.rb,
lib/google/apis/forms_v1/representations.rb,
lib/google/apis/forms_v1/representations.rb
Overview
Link to a video.
Instance Attribute Summary collapse
-
#display_text ⇒ String
Required.
-
#youtube_uri ⇒ String
The URI of a YouTube video.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoLink
constructor
A new instance of VideoLink.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VideoLink
Returns a new instance of VideoLink.
1686 1687 1688 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1686 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_text ⇒ String
Required. The display text for the link.
Corresponds to the JSON property displayText
1679 1680 1681 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1679 def display_text @display_text end |
#youtube_uri ⇒ String
The URI of a YouTube video.
Corresponds to the JSON property youtubeUri
1684 1685 1686 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1684 def youtube_uri @youtube_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1691 1692 1693 1694 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1691 def update!(**args) @display_text = args[:display_text] if args.key?(:display_text) @youtube_uri = args[:youtube_uri] if args.key?(:youtube_uri) end |