Class: WikiAvro::MediaWiki::Revision
- Inherits:
-
XML::Element
- Object
- XML::Element
- WikiAvro::MediaWiki::Revision
- Defined in:
- lib/wikiavro/mediawiki.rb
Instance Attribute Summary collapse
-
#bytes ⇒ Object
Returns the value of attribute bytes.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#contributor ⇒ Object
Returns the value of attribute contributor.
-
#id ⇒ Object
Returns the value of attribute id.
-
#minor ⇒ Object
Returns the value of attribute minor.
-
#text ⇒ Object
Returns the value of attribute text.
-
#text_deleted ⇒ Object
Returns the value of attribute text_deleted.
-
#textid ⇒ Object
Returns the value of attribute textid.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Attributes inherited from XML::Element
Instance Method Summary collapse
- #handle_content(w, p, r) ⇒ Object
-
#initialize ⇒ Revision
constructor
A new instance of Revision.
- #name ⇒ Object
- #reset ⇒ Object
Methods inherited from XML::Element
Constructor Details
Instance Attribute Details
#bytes ⇒ Object
Returns the value of attribute bytes.
448 449 450 |
# File 'lib/wikiavro/mediawiki.rb', line 448 def bytes @bytes end |
#comment ⇒ Object
Returns the value of attribute comment.
446 447 448 |
# File 'lib/wikiavro/mediawiki.rb', line 446 def comment @comment end |
#contributor ⇒ Object
Returns the value of attribute contributor.
444 445 446 |
# File 'lib/wikiavro/mediawiki.rb', line 444 def contributor @contributor end |
#id ⇒ Object
Returns the value of attribute id.
442 443 444 |
# File 'lib/wikiavro/mediawiki.rb', line 442 def id @id end |
#minor ⇒ Object
Returns the value of attribute minor.
445 446 447 |
# File 'lib/wikiavro/mediawiki.rb', line 445 def minor @minor end |
#text ⇒ Object
Returns the value of attribute text.
450 451 452 |
# File 'lib/wikiavro/mediawiki.rb', line 450 def text @text end |
#text_deleted ⇒ Object
Returns the value of attribute text_deleted.
447 448 449 |
# File 'lib/wikiavro/mediawiki.rb', line 447 def text_deleted @text_deleted end |
#textid ⇒ Object
Returns the value of attribute textid.
449 450 451 |
# File 'lib/wikiavro/mediawiki.rb', line 449 def textid @textid end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
443 444 445 |
# File 'lib/wikiavro/mediawiki.rb', line 443 def @timestamp end |
Instance Method Details
#handle_content(w, p, r) ⇒ Object
468 469 470 471 472 473 |
# File 'lib/wikiavro/mediawiki.rb', line 468 def handle_content(w, p, r) p.revision_count += 1 n = p.revision_count w.revision(id, p.id, n, , contributor, minor, comment, text_deleted, bytes, textid, text) end |
#name ⇒ Object
452 453 454 |
# File 'lib/wikiavro/mediawiki.rb', line 452 def name 'revision' end |
#reset ⇒ Object
456 457 458 459 460 461 462 463 464 465 466 |
# File 'lib/wikiavro/mediawiki.rb', line 456 def reset @id = nil @timestamp = nil @contributor = nil @minor = nil @comment = nil @text_deleted = nil @bytes = nil @textid = nil @text = nil end |