Class: Yt::Models::Comment

Inherits:
Resource
  • Object
show all
Defined in:
lib/yt/models/comment.rb

Overview

Provides methods to interact with YouTube comment.

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

Method Summary

Methods inherited from Resource

#private?, #public?, #unlisted?

Instance Attribute Details

#author_display_nameString (readonly)

Returns the display name of the user who posted the comment.

Returns:

  • (String)

    the display name of the user who posted the comment.



17
# File 'lib/yt/models/comment.rb', line 17

delegate :author_display_name, to: :snippet

#like_countInteger (readonly)

Returns the total number of likes (positive ratings) the comment has received.

Returns:

  • (Integer)

    the total number of likes (positive ratings) the comment has received.



30
# File 'lib/yt/models/comment.rb', line 30

delegate :like_count, to: :snippet

#parent_idString (readonly)

set if the comment was submitted as a reply to another comment.

Returns:

  • (String)

    the unique ID of the parent comment. This property is only



26
# File 'lib/yt/models/comment.rb', line 26

delegate :parent_id, to: :snippet

#text_displayString (readonly)

Returns the comment’s text.

Returns:

  • (String)

    the comment’s text.



21
# File 'lib/yt/models/comment.rb', line 21

delegate :text_display, to: :snippet

#updated_atTime (readonly)

Returns the date and time when the comment was last updated.

Returns:

  • (Time)

    the date and time when the comment was last updated.



34
# File 'lib/yt/models/comment.rb', line 34

delegate :updated_at, to: :snippet

#video_idString (readonly)

Returns the ID of the video that the comment refers to.

Returns:

  • (String)

    the ID of the video that the comment refers to.



13
# File 'lib/yt/models/comment.rb', line 13

delegate :video_id, to: :snippet