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

#contentObject (readonly)

Returns the value of attribute content.



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

def content
  @content
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

#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.



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

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