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.
1662 1663 1664 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1662 def initialize(**args) update!(**args) end |
Instance Attribute Details
#caption ⇒ String
The text displayed below the video.
Corresponds to the JSON property caption
1655 1656 1657 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1655 def caption @caption end |
#video ⇒ Google::Apis::FormsV1::Video
Data representing a video.
Corresponds to the JSON property video
1660 1661 1662 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1660 def video @video end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1667 1668 1669 1670 |
# File 'lib/google/apis/forms_v1/classes.rb', line 1667 def update!(**args) @caption = args[:caption] if args.key?(:caption) @video = args[:video] if args.key?(:video) end |