Class: Google::Apis::ClassroomV1::YouTubeVideo

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

Overview

YouTube video item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ YouTubeVideo

Returns a new instance of YouTubeVideo.


2136
2137
2138
# File 'generated/google/apis/classroom_v1/classes.rb', line 2136

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

Instance Attribute Details

URL that can be used to view the YouTube video. Read-only. Corresponds to the JSON property alternateLink

Returns:

  • (String)

2119
2120
2121
# File 'generated/google/apis/classroom_v1/classes.rb', line 2119

def alternate_link
  @alternate_link
end

#idString

YouTube API resource ID. Corresponds to the JSON property id

Returns:

  • (String)

2124
2125
2126
# File 'generated/google/apis/classroom_v1/classes.rb', line 2124

def id
  @id
end

#thumbnail_urlString

URL of a thumbnail image of the YouTube video. Read-only. Corresponds to the JSON property thumbnailUrl

Returns:

  • (String)

2129
2130
2131
# File 'generated/google/apis/classroom_v1/classes.rb', line 2129

def thumbnail_url
  @thumbnail_url
end

#titleString

Title of the YouTube video. Read-only. Corresponds to the JSON property title

Returns:

  • (String)

2134
2135
2136
# File 'generated/google/apis/classroom_v1/classes.rb', line 2134

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2141
2142
2143
2144
2145
2146
# File 'generated/google/apis/classroom_v1/classes.rb', line 2141

def update!(**args)
  @alternate_link = args[:alternate_link] if args.key?(:alternate_link)
  @id = args[:id] if args.key?(:id)
  @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
  @title = args[:title] if args.key?(:title)
end