class Google::Apis::YoutubeV3::ActivitySnippet

Basic details about an activity, including title, description, thumbnails, activity type and group.

Attributes

channel_id[RW]

The ID that YouTube uses to uniquely identify the channel associated with the activity. Corresponds to the JSON property `channelId` @return [String]

channel_title[RW]

Channel title for the channel responsible for this activity Corresponds to the JSON property `channelTitle` @return [String]

description[RW]

The description of the resource primarily associated with the activity. Corresponds to the JSON property `description` @return [String]

group_id[RW]

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]

published_at[RW]

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]

thumbnails[RW]

Internal representation of thumbnails for a YouTube resource. Corresponds to the JSON property `thumbnails` @return [Google::Apis::YoutubeV3::ThumbnailDetails]

title[RW]

The title of the resource primarily associated with the activity. Corresponds to the JSON property `title` @return [String]

type[RW]

The type of activity that the resource describes. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_v3/classes.rb, line 627
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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