Class: Yt::Models::CommentThread
- Defined in:
- lib/yt/models/comment_thread.rb
Overview
Provides methods to interact with YouTube comment thread.
Constant Summary
Constants inherited from Resource
Resource::CHANNEL_PATTERNS , Resource::PLAYLIST_PATTERNS , Resource::VIDEO_PATTERNS
Instance Attribute Summary collapse
-
#author_display_name ⇒ String
readonly
The top level comment’s author name.
-
#like_count ⇒ String
readonly
The top level comment’s likes count.
-
#text_display ⇒ String
readonly
The top level comment’s display text.
-
#top_level_comment ⇒ Yt::TopLevelComment
readonly
The top level comment object.
-
#total_reply_count ⇒ String
readonly
in response to the top level comment.
-
#updated_at ⇒ String
readonly
The top level comment’s last updated time.
-
#video_id ⇒ String
readonly
any.
Attributes inherited from Resource
Instance Method Summary collapse
-
#can_reply? ⇒ Boolean
Whether the current viewer can reply to the thread.
-
#public? ⇒ Boolean
comment replies, is visible to all YouTube users.
Methods inherited from Resource
Instance Attribute Details
#author_display_name ⇒ String (readonly)
Returns the top level comment’s author name.
Returns:
-
(String)
—
the top level comment’s author name.
39
# File 'lib/yt/models/comment_thread.rb', line 39 delegate :author_display_name, to: :top_level_comment
#like_count ⇒ String (readonly)
Returns the top level comment’s likes count.
Returns:
-
(String)
—
the top level comment’s likes count.
43
# File 'lib/yt/models/comment_thread.rb', line 43 delegate :like_count, to: :top_level_comment
#text_display ⇒ String (readonly)
Returns the top level comment’s display text.
Returns:
-
(String)
—
the top level comment’s display text.
35
# File 'lib/yt/models/comment_thread.rb', line 35 delegate :text_display, to: :top_level_comment
#top_level_comment ⇒ Yt::TopLevelComment (readonly)
Returns the top level comment object.
Returns:
-
(Yt::TopLevelComment)
—
the top level comment object.
31
# File 'lib/yt/models/comment_thread.rb', line 31 delegate :top_level_comment, to: :snippet
#total_reply_count ⇒ String (readonly)
in response to the top level comment.
Returns:
-
(String)
—
The total number of replies that have been submitted
20
# File 'lib/yt/models/comment_thread.rb', line 20 delegate :total_reply_count, to: :snippet
#updated_at ⇒ String (readonly)
Returns the top level comment’s last updated time.
Returns:
-
(String)
—
the top level comment’s last updated time.
47
# File 'lib/yt/models/comment_thread.rb', line 47 delegate :updated_at, to: :top_level_comment
#video_id ⇒ String (readonly)
any. If this property is not present or does not have a value, then the thread applies to the channel and not to a specific video.
Returns:
-
(String)
—
the ID of the video that the comment thread referto, if
15
# File 'lib/yt/models/comment_thread.rb', line 15 delegate :video_id, to: :snippet
Instance Method Details
#can_reply? ⇒ Boolean
Returns whether the current viewer can reply to the thread.
Returns:
-
(Boolean)
—
whether the current viewer can reply to the thread.
27
# File 'lib/yt/models/comment_thread.rb', line 27 delegate :can_reply?, to: :snippet
#public? ⇒ Boolean
comment replies, is visible to all YouTube users.
Returns:
-
(Boolean)
—
whether the thread, including all of its comments and
24
# File 'lib/yt/models/comment_thread.rb', line 24 delegate :public?, to: :snippet