Class: Yt::Models::CommentThread

Inherits:
Resource
  • Object
show all
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

Attributes inherited from Resource

#id, #privacy_status

Instance Method Summary collapse

Methods inherited from Resource

#private?, #unlisted?

Instance Attribute Details

#author_display_nameString (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_countString (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_displayString (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_commentYt::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_countString (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_atString (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_idString (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