Class: Yt::Models::Comment
- 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
-
#author_display_name ⇒ String
readonly
The display name of the user who posted the comment.
-
#like_count ⇒ Integer
readonly
The total number of likes (positive ratings) the comment has received.
-
#parent_id ⇒ String
readonly
set if the comment was submitted as a reply to another comment.
-
#text_display ⇒ String
readonly
The comment’s text.
-
#updated_at ⇒ Time
readonly
The date and time when the comment was last updated.
-
#video_id ⇒ String
readonly
The ID of the video that the comment refers to.
Attributes inherited from Resource
Method Summary
Methods inherited from Resource
#private?, #public?, #unlisted?
Instance Attribute Details
#author_display_name ⇒ String (readonly)
Returns 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_count ⇒ Integer (readonly)
Returns 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_id ⇒ String (readonly)
set if the comment was submitted as a reply to another comment.
26 |
# File 'lib/yt/models/comment.rb', line 26 delegate :parent_id, to: :snippet |
#text_display ⇒ String (readonly)
Returns the comment’s text.
21 |
# File 'lib/yt/models/comment.rb', line 21 delegate :text_display, to: :snippet |
#updated_at ⇒ Time (readonly)
Returns 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_id ⇒ String (readonly)
Returns the ID of the video that the comment refers to.
13 |
# File 'lib/yt/models/comment.rb', line 13 delegate :video_id, to: :snippet |