Class: YTComment
- Inherits:
-
Object
- Object
- YTComment
- Defined in:
- lib/yt_comment.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#author_uri ⇒ Object
Returns the value of attribute author_uri.
-
#content ⇒ Object
Returns the value of attribute content.
-
#title ⇒ Object
Returns the value of attribute title.
-
#video_uri ⇒ Object
Returns the value of attribute video_uri.
Instance Method Summary collapse
-
#initialize(data) ⇒ YTComment
constructor
A new instance of YTComment.
Constructor Details
#initialize(data) ⇒ YTComment
Returns a new instance of YTComment.
5 6 7 8 9 10 11 |
# File 'lib/yt_comment.rb', line 5 def initialize(data) @title = data[:title] @content = data[:content] @author = data[:author] @author_uri = data[:author_uri] @video_uri = data[:video_uri] end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
3 4 5 |
# File 'lib/yt_comment.rb', line 3 def @author end |
#author_uri ⇒ Object
Returns the value of attribute author_uri.
3 4 5 |
# File 'lib/yt_comment.rb', line 3 def @author_uri end |
#content ⇒ Object
Returns the value of attribute content.
3 4 5 |
# File 'lib/yt_comment.rb', line 3 def content @content end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/yt_comment.rb', line 3 def title @title end |
#video_uri ⇒ Object
Returns the value of attribute video_uri.
3 4 5 |
# File 'lib/yt_comment.rb', line 3 def video_uri @video_uri end |