Class: Nicovideo::Comments
- Inherits:
-
Object
- Object
- Nicovideo::Comments
- Defined in:
- lib/nicovideo/comments.rb
Instance Method Summary collapse
-
#initialize(video_id, xml) ⇒ Comments
constructor
A new instance of Comments.
- #to_s ⇒ Object
- #to_xml ⇒ Object
Constructor Details
#initialize(video_id, xml) ⇒ Comments
Returns a new instance of Comments.
2 3 4 5 |
# File 'lib/nicovideo/comments.rb', line 2 def initialize video_id, xml @video_id = video_id @xml = xml end |
Instance Method Details
#to_s ⇒ Object
7 |
# File 'lib/nicovideo/comments.rb', line 7 def to_s() @xml.to_s end |
#to_xml ⇒ Object
8 |
# File 'lib/nicovideo/comments.rb', line 8 def to_xml() @xml.to_s end |