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