Class: Google::Apis::YoutubeV3::CommentThread

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

A comment thread represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies.

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

Returns a new instance of CommentThread.


2291
2292
2293
# File 'generated/google/apis/youtube_v3/classes.rb', line 2291

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

Instance Attribute Details

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)

2268
2269
2270
# File 'generated/google/apis/youtube_v3/classes.rb', line 2268

def etag
  @etag
end

#idString

The ID that YouTube uses to uniquely identify the comment thread. Corresponds to the JSON property id

Returns:

  • (String)

2273
2274
2275
# File 'generated/google/apis/youtube_v3/classes.rb', line 2273

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "youtube# commentThread". Corresponds to the JSON property kind

Returns:

  • (String)

2279
2280
2281
# File 'generated/google/apis/youtube_v3/classes.rb', line 2279

def kind
  @kind
end

#repliesGoogle::Apis::YoutubeV3::CommentThreadReplies

Comments written in (direct or indirect) reply to the top level comment. Corresponds to the JSON property replies


2284
2285
2286
# File 'generated/google/apis/youtube_v3/classes.rb', line 2284

def replies
  @replies
end

#snippetGoogle::Apis::YoutubeV3::CommentThreadSnippet

Basic details about a comment thread. Corresponds to the JSON property snippet


2289
2290
2291
# File 'generated/google/apis/youtube_v3/classes.rb', line 2289

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2296
2297
2298
2299
2300
2301
2302
# File 'generated/google/apis/youtube_v3/classes.rb', line 2296

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @replies = args[:replies] if args.key?(:replies)
  @snippet = args[:snippet] if args.key?(:snippet)
end