class Google::Apis::YoutubeV3::ActivitySnippet
Basic details about an activity, including title, description, thumbnails, activity type and group.
Attributes
The ID that YouTube uses to uniquely identify the channel associated with the activity. Corresponds to the JSON property `channelId` @return [String]
Channel title for the channel responsible for this activity Corresponds to the JSON property `channelTitle` @return [String]
The description of the resource primarily associated with the activity. Corresponds to the JSON property `description` @return [String]
The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value. Corresponds to the JSON property `groupId` @return [String]
The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. Corresponds to the JSON property `publishedAt` @return [DateTime]
Internal representation of thumbnails for a YouTube resource. Corresponds to the JSON property `thumbnails` @return [Google::Apis::YoutubeV3::ThumbnailDetails]
The title of the resource primarily associated with the activity. Corresponds to the JSON property `title` @return [String]
The type of activity that the resource describes. Corresponds to the JSON property `type` @return [String]
Public Class Methods
# File generated/google/apis/youtube_v3/classes.rb, line 627 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/youtube_v3/classes.rb, line 632 def update!(**args) @channel_id = args[:channel_id] if args.key?(:channel_id) @channel_title = args[:channel_title] if args.key?(:channel_title) @description = args[:description] if args.key?(:description) @group_id = args[:group_id] if args.key?(:group_id) @published_at = args[:published_at] if args.key?(:published_at) @thumbnails = args[:thumbnails] if args.key?(:thumbnails) @title = args[:title] if args.key?(:title) @type = args[:type] if args.key?(:type) end