Class: WikiAvro::MediaWiki::DiscussionThreading

Inherits:
XML::Element
  • Object
show all
Defined in:
lib/wikiavro/mediawiki.rb

Instance Attribute Summary collapse

Attributes inherited from XML::Element

#attr

Instance Method Summary collapse

Methods inherited from XML::Element

#optional?, #parse

Constructor Details

#initializeDiscussionThreading

Returns a new instance of DiscussionThreading.



597
598
599
600
601
# File 'lib/wikiavro/mediawiki.rb', line 597

def initialize
  super([ThreadSubject.new, ThreadParentGroup.new, ThreadPage.new,
         ThreadID.new, ThreadSummaryPageGroup.new, ThreadAuthor.new,
         ThreadEditStatus.new, ThreadType.new, ThreadSignature.new])
end

Instance Attribute Details

#threadAncestorObject

Returns the value of attribute threadAncestor.



569
570
571
# File 'lib/wikiavro/mediawiki.rb', line 569

def threadAncestor
  @threadAncestor
end

#threadAuthorObject

Returns the value of attribute threadAuthor.



569
570
571
# File 'lib/wikiavro/mediawiki.rb', line 569

def threadAuthor
  @threadAuthor
end

#threadEditStatusObject

Returns the value of attribute threadEditStatus.



569
570
571
# File 'lib/wikiavro/mediawiki.rb', line 569

def threadEditStatus
  @threadEditStatus
end

#threadIDObject

Returns the value of attribute threadID.



569
570
571
# File 'lib/wikiavro/mediawiki.rb', line 569

def threadID
  @threadID
end

#threadPageObject

Returns the value of attribute threadPage.



569
570
571
# File 'lib/wikiavro/mediawiki.rb', line 569

def threadPage
  @threadPage
end

#threadParentObject

Returns the value of attribute threadParent.



569
570
571
# File 'lib/wikiavro/mediawiki.rb', line 569

def threadParent
  @threadParent
end

#threadSignatureObject

Returns the value of attribute threadSignature.



569
570
571
# File 'lib/wikiavro/mediawiki.rb', line 569

def threadSignature
  @threadSignature
end

#threadSubjectObject

Returns the value of attribute threadSubject.



569
570
571
# File 'lib/wikiavro/mediawiki.rb', line 569

def threadSubject
  @threadSubject
end

#threadSummaryPageObject

Returns the value of attribute threadSummaryPage.



569
570
571
# File 'lib/wikiavro/mediawiki.rb', line 569

def threadSummaryPage
  @threadSummaryPage
end

#threadTypeObject

Returns the value of attribute threadType.



569
570
571
# File 'lib/wikiavro/mediawiki.rb', line 569

def threadType
  @threadType
end

Instance Method Details

#handle_content(w, p, r) ⇒ Object



590
591
592
593
594
595
# File 'lib/wikiavro/mediawiki.rb', line 590

def handle_content(w, p, r)
  w.lqt(threadSubject, threadParent, threadAncestor,
        threadPage, threadID, threadSummaryPage,
        threadAuthor, threadEditStatus, threadType,
        threadSignature)
end

#nameObject



573
574
575
# File 'lib/wikiavro/mediawiki.rb', line 573

def name
  'DiscussionThreading'
end

#resetObject



577
578
579
580
581
582
583
584
585
586
587
588
# File 'lib/wikiavro/mediawiki.rb', line 577

def reset
  @threadSubject = nil
  @threadParent = nil
  @threadAncestor = nil
  @threadPage = nil
  @threadID = nil
  @threadSummaryPage = nil
  @threadAuthor = nil
  @threadEditStatus = nil
  @threadType = nil
  @threadSignature = nil
end