Class: LiveJournal::Sync::CommentsXML::Base

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

Direct Known Subclasses

WithExpat, WithREXML

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil) ⇒ Base

Returns a new instance of Base.



58
59
60
61
62
63
# File 'lib/livejournal/comments-xml.rb', line 58

def initialize(data=nil)
  @maxid = nil
  @comments = {}
  @usermap = {}
  parse data if data
end

Instance Attribute Details

#commentsObject (readonly)

Returns the value of attribute comments.



57
58
59
# File 'lib/livejournal/comments-xml.rb', line 57

def comments
  @comments
end

#maxidObject (readonly)

Returns the value of attribute maxid.



57
58
59
# File 'lib/livejournal/comments-xml.rb', line 57

def maxid
  @maxid
end

#usermapObject (readonly)

Returns the value of attribute usermap.



57
58
59
# File 'lib/livejournal/comments-xml.rb', line 57

def usermap
  @usermap
end