Class: YouTubeIt::Model::Comment

Inherits:
Record
  • Object
show all
Defined in:
lib/youtube_it/model/comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from YouTubeIt::Record

Instance Attribute Details

#authorObject (readonly)

YouTubeIt::Model::Author

Information about the YouTube user who owns a piece of video content.



7
8
9
# File 'lib/youtube_it/model/comment.rb', line 7

def author
  @author
end

#channel_idObject (readonly)

Returns the value of attribute channel_id.



8
9
10
# File 'lib/youtube_it/model/comment.rb', line 8

def channel_id
  @channel_id
end

#contentObject (readonly)

Returns the value of attribute content.



4
5
6
# File 'lib/youtube_it/model/comment.rb', line 4

def content
  @content
end

#gp_user_idObject (readonly)

Returns the value of attribute gp_user_id.



9
10
11
# File 'lib/youtube_it/model/comment.rb', line 9

def gp_user_id
  @gp_user_id
end

#publishedObject (readonly)

Returns the value of attribute published.



4
5
6
# File 'lib/youtube_it/model/comment.rb', line 4

def published
  @published
end

#reply_toObject (readonly)

Returns the value of attribute reply_to.



4
5
6
# File 'lib/youtube_it/model/comment.rb', line 4

def reply_to
  @reply_to
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/youtube_it/model/comment.rb', line 4

def title
  @title
end

#updatedObject (readonly)

Returns the value of attribute updated.



4
5
6
# File 'lib/youtube_it/model/comment.rb', line 4

def updated
  @updated
end

#urlObject (readonly)

Returns the value of attribute url.



4
5
6
# File 'lib/youtube_it/model/comment.rb', line 4

def url
  @url
end

Instance Method Details

#unique_idObject

unique ID of the comment.



12
13
14
# File 'lib/youtube_it/model/comment.rb', line 12

def unique_id
  url.split(":").last
end