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.



1686
1687
1688
# File 'lib/google/apis/forms_v1/classes.rb', line 1686

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)


1679
1680
1681
# File 'lib/google/apis/forms_v1/classes.rb', line 1679

def display_text
  @display_text
end

#youtube_uriString

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

Returns:

  • (String)


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