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.



1661
1662
1663
# File 'lib/google/apis/forms_v1/classes.rb', line 1661

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

Instance Attribute Details

#captionString

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

Returns:

  • (String)


1654
1655
1656
# File 'lib/google/apis/forms_v1/classes.rb', line 1654

def caption
  @caption
end

#videoGoogle::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