Class: Google::Apis::FormsV1::VideoLink

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoLink

Returns a new instance of VideoLink.



1833
1834
1835
# File 'lib/google/apis/forms_v1/classes.rb', line 1833

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

Instance Attribute Details

#display_textString

Required. The display text for the link. Corresponds to the JSON property displayText

Returns:

  • (String)


1826
1827
1828
# File 'lib/google/apis/forms_v1/classes.rb', line 1826

def display_text
  @display_text
end

#youtube_uriString

The URI of a YouTube video. Corresponds to the JSON property youtubeUri

Returns:

  • (String)


1831
1832
1833
# File 'lib/google/apis/forms_v1/classes.rb', line 1831

def youtube_uri
  @youtube_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1838
1839
1840
1841
# File 'lib/google/apis/forms_v1/classes.rb', line 1838

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