Class: Google::Apis::SlidesV1::Video

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb

Overview

A PageElement kind representing a video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Video

Returns a new instance of Video



3380
3381
3382
# File 'generated/google/apis/slides_v1/classes.rb', line 3380

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

Instance Attribute Details

#idString

The video source's unique identifier for this video. Corresponds to the JSON property id

Returns:

  • (String)


3373
3374
3375
# File 'generated/google/apis/slides_v1/classes.rb', line 3373

def id
  @id
end

#sourceString

The video source. Corresponds to the JSON property source

Returns:

  • (String)


3362
3363
3364
# File 'generated/google/apis/slides_v1/classes.rb', line 3362

def source
  @source
end

#urlString

An URL to a video. The URL is valid as long as the source video exists and sharing settings do not change. Corresponds to the JSON property url

Returns:

  • (String)


3368
3369
3370
# File 'generated/google/apis/slides_v1/classes.rb', line 3368

def url
  @url
end

#video_propertiesGoogle::Apis::SlidesV1::VideoProperties

The properties of the Video. Corresponds to the JSON property videoProperties



3378
3379
3380
# File 'generated/google/apis/slides_v1/classes.rb', line 3378

def video_properties
  @video_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3385
3386
3387
3388
3389
3390
# File 'generated/google/apis/slides_v1/classes.rb', line 3385

def update!(**args)
  @source = args[:source] if args.key?(:source)
  @url = args[:url] if args.key?(:url)
  @id = args[:id] if args.key?(:id)
  @video_properties = args[:video_properties] if args.key?(:video_properties)
end