Class: Google::Apis::YoutubeV3::Activity

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Activity



91
92
93
# File 'generated/google/apis/youtube_v3/classes.rb', line 91

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

Instance Attribute Details

#content_detailsGoogle::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

#etagString

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

#idString

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

#kindString

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

#snippetGoogle::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