Class: Google::Apis::YoutubeV3::ActivitySnippet

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

Overview

Basic details about an activity, including title, description, thumbnails, activity type and group. Next ID: 12

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActivitySnippet

Returns a new instance of ActivitySnippet.



684
685
686
# File 'generated/google/apis/youtube_v3/classes.rb', line 684

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

Instance Attribute Details

#channel_idString

The ID that YouTube uses to uniquely identify the channel associated with the activity. Corresponds to the JSON property channelId

Returns:

  • (String)


640
641
642
# File 'generated/google/apis/youtube_v3/classes.rb', line 640

def channel_id
  @channel_id
end

#channel_titleString

Channel title for the channel responsible for this activity Corresponds to the JSON property channelTitle

Returns:

  • (String)


645
646
647
# File 'generated/google/apis/youtube_v3/classes.rb', line 645

def channel_title
  @channel_title
end

#descriptionString

The description of the resource primarily associated with the activity. @ mutable youtube.activities.insert Corresponds to the JSON property description

Returns:

  • (String)


651
652
653
# File 'generated/google/apis/youtube_v3/classes.rb', line 651

def description
  @description
end

#group_idString

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

Returns:

  • (String)


661
662
663
# File 'generated/google/apis/youtube_v3/classes.rb', line 661

def group_id
  @group_id
end

#published_atString

The date and time that the video was uploaded. The value is specified in ISO 8601 format. Corresponds to the JSON property publishedAt

Returns:

  • (String)


667
668
669
# File 'generated/google/apis/youtube_v3/classes.rb', line 667

def published_at
  @published_at
end

#thumbnailsGoogle::Apis::YoutubeV3::ThumbnailDetails

Internal representation of thumbnails for a YouTube resource. Corresponds to the JSON property thumbnails



672
673
674
# File 'generated/google/apis/youtube_v3/classes.rb', line 672

def thumbnails
  @thumbnails
end

#titleString

The title of the resource primarily associated with the activity. Corresponds to the JSON property title

Returns:

  • (String)


677
678
679
# File 'generated/google/apis/youtube_v3/classes.rb', line 677

def title
  @title
end

#typeString

The type of activity that the resource describes. Corresponds to the JSON property type

Returns:

  • (String)


682
683
684
# File 'generated/google/apis/youtube_v3/classes.rb', line 682

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



689
690
691
692
693
694
695
696
697
698
# File 'generated/google/apis/youtube_v3/classes.rb', line 689

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