Class: WikiAvro::MediaWiki::Page
- Inherits:
-
XML::Element
- Object
- XML::Element
- WikiAvro::MediaWiki::Page
- Defined in:
- lib/wikiavro/mediawiki.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#ns ⇒ Object
Returns the value of attribute ns.
-
#redirect ⇒ Object
Returns the value of attribute redirect.
-
#revision_count ⇒ Object
Returns the value of attribute revision_count.
-
#sha1 ⇒ Object
Returns the value of attribute sha1.
-
#title ⇒ Object
Returns the value of attribute title.
Attributes inherited from XML::Element
Instance Method Summary collapse
- #handle_content(w, p, r) ⇒ Object
-
#initialize ⇒ Page
constructor
A new instance of Page.
- #name ⇒ Object
- #reset ⇒ Object
Methods inherited from XML::Element
Constructor Details
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
617 618 619 |
# File 'lib/wikiavro/mediawiki.rb', line 617 def id @id end |
#ns ⇒ Object
Returns the value of attribute ns.
616 617 618 |
# File 'lib/wikiavro/mediawiki.rb', line 616 def ns @ns end |
#redirect ⇒ Object
Returns the value of attribute redirect.
618 619 620 |
# File 'lib/wikiavro/mediawiki.rb', line 618 def redirect @redirect end |
#revision_count ⇒ Object
Returns the value of attribute revision_count.
620 621 622 |
# File 'lib/wikiavro/mediawiki.rb', line 620 def revision_count @revision_count end |
#sha1 ⇒ Object
Returns the value of attribute sha1.
619 620 621 |
# File 'lib/wikiavro/mediawiki.rb', line 619 def sha1 @sha1 end |
#title ⇒ Object
Returns the value of attribute title.
615 616 617 |
# File 'lib/wikiavro/mediawiki.rb', line 615 def title @title end |
Instance Method Details
#handle_content(w, p, r) ⇒ Object
636 637 638 |
# File 'lib/wikiavro/mediawiki.rb', line 636 def handle_content(w, p, r) w.page(ns, id, title, redirect, sha1) end |
#name ⇒ Object
622 623 624 |
# File 'lib/wikiavro/mediawiki.rb', line 622 def name 'page' end |
#reset ⇒ Object
626 627 628 629 630 631 632 633 634 |
# File 'lib/wikiavro/mediawiki.rb', line 626 def reset @title = nil @ns = nil @id = nil @redirect = nil @sha1 = nil @revision_count = nil @revision_count = 0 end |