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.



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

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)


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

def display_text
  @display_text
end

#youtube_uriString

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

Returns:

  • (String)


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

def youtube_uri
  @youtube_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1692
1693
1694
1695
# File 'lib/google/apis/forms_v1/classes.rb', line 1692

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