Class: LiveJournal::Sync::CommentsXML::WithExpat

Inherits:
Base
  • Object
show all
Defined in:
lib/livejournal/comments-xml.rb

Defined Under Namespace

Classes: Parser

Instance Attribute Summary

Attributes inherited from Base

#comments, #maxid, #usermap

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from LiveJournal::Sync::CommentsXML::Base

Instance Method Details

#parse(data) ⇒ Object



142
143
144
145
146
147
148
# File 'lib/livejournal/comments-xml.rb', line 142

def parse(data)
  parser = Parser.new
  parser.parse(data)
  @maxid = parser.maxid
  @comments = parser.comments
  @usermap = parser.usermap
end