Class: Google::Apis::YoutubeV3::ActivityContentDetails

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

Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc.

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) ⇒ ActivityContentDetails

Returns a new instance of ActivityContentDetails



165
166
167
# File 'generated/google/apis/youtube_v3/classes.rb', line 165

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

Instance Attribute Details

#bulletinGoogle::Apis::YoutubeV3::ActivityContentDetailsBulletin

Details about a channel bulletin post. Corresponds to the JSON property bulletin



113
114
115
# File 'generated/google/apis/youtube_v3/classes.rb', line 113

def bulletin
  @bulletin
end

#channel_itemGoogle::Apis::YoutubeV3::ActivityContentDetailsChannelItem

Details about a resource which was added to a channel. Corresponds to the JSON property channelItem



118
119
120
# File 'generated/google/apis/youtube_v3/classes.rb', line 118

def channel_item
  @channel_item
end

#commentGoogle::Apis::YoutubeV3::ActivityContentDetailsComment

Information about a resource that received a comment. Corresponds to the JSON property comment



123
124
125
# File 'generated/google/apis/youtube_v3/classes.rb', line 123

def comment
  @comment
end

#favoriteGoogle::Apis::YoutubeV3::ActivityContentDetailsFavorite

Information about a video that was marked as a favorite video. Corresponds to the JSON property favorite



128
129
130
# File 'generated/google/apis/youtube_v3/classes.rb', line 128

def favorite
  @favorite
end

#likeGoogle::Apis::YoutubeV3::ActivityContentDetailsLike

Information about a resource that received a positive (like) rating. Corresponds to the JSON property like



133
134
135
# File 'generated/google/apis/youtube_v3/classes.rb', line 133

def like
  @like
end

#playlist_itemGoogle::Apis::YoutubeV3::ActivityContentDetailsPlaylistItem

Information about a new playlist item. Corresponds to the JSON property playlistItem



138
139
140
# File 'generated/google/apis/youtube_v3/classes.rb', line 138

def playlist_item
  @playlist_item
end

Details about a resource which is being promoted. Corresponds to the JSON property promotedItem



143
144
145
# File 'generated/google/apis/youtube_v3/classes.rb', line 143

def promoted_item
  @promoted_item
end

#recommendationGoogle::Apis::YoutubeV3::ActivityContentDetailsRecommendation

Information that identifies the recommended resource. Corresponds to the JSON property recommendation



148
149
150
# File 'generated/google/apis/youtube_v3/classes.rb', line 148

def recommendation
  @recommendation
end

#socialGoogle::Apis::YoutubeV3::ActivityContentDetailsSocial

Details about a social network post. Corresponds to the JSON property social



153
154
155
# File 'generated/google/apis/youtube_v3/classes.rb', line 153

def social
  @social
end

#subscriptionGoogle::Apis::YoutubeV3::ActivityContentDetailsSubscription

Information about a channel that a user subscribed to. Corresponds to the JSON property subscription



158
159
160
# File 'generated/google/apis/youtube_v3/classes.rb', line 158

def subscription
  @subscription
end

#uploadGoogle::Apis::YoutubeV3::ActivityContentDetailsUpload

Information about the uploaded video. Corresponds to the JSON property upload



163
164
165
# File 'generated/google/apis/youtube_v3/classes.rb', line 163

def upload
  @upload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



170
171
172
173
174
175
176
177
178
179
180
181
182
# File 'generated/google/apis/youtube_v3/classes.rb', line 170

def update!(**args)
  @bulletin = args[:bulletin] if args.key?(:bulletin)
  @channel_item = args[:channel_item] if args.key?(:channel_item)
  @comment = args[:comment] if args.key?(:comment)
  @favorite = args[:favorite] if args.key?(:favorite)
  @like = args[:like] if args.key?(:like)
  @playlist_item = args[:playlist_item] if args.key?(:playlist_item)
  @promoted_item = args[:promoted_item] if args.key?(:promoted_item)
  @recommendation = args[:recommendation] if args.key?(:recommendation)
  @social = args[:social] if args.key?(:social)
  @subscription = args[:subscription] if args.key?(:subscription)
  @upload = args[:upload] if args.key?(:upload)
end