Class: Google::Apis::FormsV1::VideoItem

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

An item containing a video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoItem

Returns a new instance of VideoItem.



1808
1809
1810
# File 'lib/google/apis/forms_v1/classes.rb', line 1808

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

Instance Attribute Details

#captionString

The text displayed below the video. Corresponds to the JSON property caption

Returns:

  • (String)


1801
1802
1803
# File 'lib/google/apis/forms_v1/classes.rb', line 1801

def caption
  @caption
end

#videoGoogle::Apis::FormsV1::Video

Data representing a video. Corresponds to the JSON property video



1806
1807
1808
# File 'lib/google/apis/forms_v1/classes.rb', line 1806

def video
  @video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1813
1814
1815
1816
# File 'lib/google/apis/forms_v1/classes.rb', line 1813

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