Class: Google::Apis::FormsV1::VideoItem
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::VideoItem
- 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
-
#caption ⇒ String
The text displayed below the video.
-
#video ⇒ Google::Apis::FormsV1::Video
Data representing a video.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoItem
constructor
A new instance of VideoItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#caption ⇒ String
The text displayed below the video.
Corresponds to the JSON property caption
1801 1802 1803 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1801 def caption @caption end |
#video ⇒ Google::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 |