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

- (Base) initialize(data = nil)

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

- (Object) comments (readonly)

Returns the value of attribute comments



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

def comments
  @comments
end

- (Object) maxid (readonly)

Returns the value of attribute maxid



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

def maxid
  @maxid
end

- (Object) usermap (readonly)

Returns the value of attribute usermap



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

def usermap
  @usermap
end