Class: Google::Apis::YoutubeV3::Activity
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubeV3::Activity
 
- 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
An activity resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
Instance Attribute Summary collapse
- 
  
    
      #content_details  ⇒ Google::Apis::YoutubeV3::ActivityContentDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc. 
- 
  
    
      #etag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Etag of this resource. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID that YouTube uses to uniquely identify the activity. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies what kind of resource this is. 
- 
  
    
      #snippet  ⇒ Google::Apis::YoutubeV3::ActivitySnippet 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Basic details about an activity, including title, description, thumbnails, activity type and group. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Activity 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Activity. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Activity
Returns a new instance of Activity
| 91 92 93 | # File 'generated/google/apis/youtube_v3/classes.rb', line 91 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#content_details ⇒ Google::Apis::YoutubeV3::ActivityContentDetails
Details about the content of an activity: the video that was shared, the
channel that was subscribed to, etc.
Corresponds to the JSON property contentDetails
| 67 68 69 | # File 'generated/google/apis/youtube_v3/classes.rb', line 67 def content_details @content_details end | 
#etag ⇒ String
Etag of this resource.
Corresponds to the JSON property etag
| 72 73 74 | # File 'generated/google/apis/youtube_v3/classes.rb', line 72 def etag @etag end | 
#id ⇒ String
The ID that YouTube uses to uniquely identify the activity.
Corresponds to the JSON property id
| 77 78 79 | # File 'generated/google/apis/youtube_v3/classes.rb', line 77 def id @id end | 
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "youtube#
activity".
Corresponds to the JSON property kind
| 83 84 85 | # File 'generated/google/apis/youtube_v3/classes.rb', line 83 def kind @kind end | 
#snippet ⇒ Google::Apis::YoutubeV3::ActivitySnippet
Basic details about an activity, including title, description, thumbnails,
activity type and group.
Corresponds to the JSON property snippet
| 89 90 91 | # File 'generated/google/apis/youtube_v3/classes.rb', line 89 def snippet @snippet end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 96 97 98 99 100 101 102 | # File 'generated/google/apis/youtube_v3/classes.rb', line 96 def update!(**args) @content_details = args[:content_details] if args.key?(:content_details) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @snippet = args[:snippet] if args.key?(:snippet) end |