Class: Google::Apis::YoutubeV3::ActivitySnippet
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubeV3::ActivitySnippet
 
- 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.
Instance Attribute Summary collapse
- 
  
    
      #channel_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID that YouTube uses to uniquely identify the channel associated with the activity. 
- 
  
    
      #channel_title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Channel title for the channel responsible for this activity Corresponds to the JSON property channelTitle.
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The description of the resource primarily associated with the activity. 
- 
  
    
      #group_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The group ID associated with the activity. 
- 
  
    
      #published_at  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The date and time that the video was uploaded. 
- 
  
    
      #thumbnails  ⇒ Google::Apis::YoutubeV3::ThumbnailDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Internal representation of thumbnails for a YouTube resource. 
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The title of the resource primarily associated with the activity. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of activity that the resource describes. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ActivitySnippet 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ActivitySnippet. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ActivitySnippet
Returns a new instance of ActivitySnippet
| 627 628 629 | # File 'generated/google/apis/youtube_v3/classes.rb', line 627 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#channel_id ⇒ String
The ID that YouTube uses to uniquely identify the channel associated with the
activity.
Corresponds to the JSON property channelId
| 584 585 586 | # File 'generated/google/apis/youtube_v3/classes.rb', line 584 def channel_id @channel_id end | 
#channel_title ⇒ String
Channel title for the channel responsible for this activity
Corresponds to the JSON property channelTitle
| 589 590 591 | # File 'generated/google/apis/youtube_v3/classes.rb', line 589 def channel_title @channel_title end | 
#description ⇒ String
The description of the resource primarily associated with the activity.
Corresponds to the JSON property description
| 594 595 596 | # File 'generated/google/apis/youtube_v3/classes.rb', line 594 def description @description end | 
#group_id ⇒ 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
| 604 605 606 | # File 'generated/google/apis/youtube_v3/classes.rb', line 604 def group_id @group_id end | 
#published_at ⇒ DateTime
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
| 610 611 612 | # File 'generated/google/apis/youtube_v3/classes.rb', line 610 def published_at @published_at end | 
#thumbnails ⇒ Google::Apis::YoutubeV3::ThumbnailDetails
Internal representation of thumbnails for a YouTube resource.
Corresponds to the JSON property thumbnails
| 615 616 617 | # File 'generated/google/apis/youtube_v3/classes.rb', line 615 def thumbnails @thumbnails end | 
#title ⇒ String
The title of the resource primarily associated with the activity.
Corresponds to the JSON property title
| 620 621 622 | # File 'generated/google/apis/youtube_v3/classes.rb', line 620 def title @title end | 
#type ⇒ String
The type of activity that the resource describes.
Corresponds to the JSON property type
| 625 626 627 | # File 'generated/google/apis/youtube_v3/classes.rb', line 625 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 632 633 634 635 636 637 638 639 640 641 | # 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 |