Class: Nicovideo::Comments

Inherits:
Object
  • Object
show all
Defined in:
lib/nicovideo/comments.rb

Instance Method Summary collapse

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_sObject



7
# File 'lib/nicovideo/comments.rb', line 7

def to_s() @xml.to_s end

#to_xmlObject



8
# File 'lib/nicovideo/comments.rb', line 8

def to_xml() @xml.to_s end