Class: BMF::Saxparser
- Inherits:
-
Object
- Object
- BMF::Saxparser
- Includes:
- XML::SaxParser::Callbacks
- Defined in:
- lib/abgabenrechner.rb
Defined Under Namespace
Classes: Ausgabe
Instance Attribute Summary collapse
-
#ausgaben ⇒ Object
Returns the value of attribute ausgaben.
Instance Method Summary collapse
- #on_end_document ⇒ Object
- #on_start_document ⇒ Object
- #on_start_element(element, attributes) ⇒ Object
Instance Attribute Details
#ausgaben ⇒ Object
Returns the value of attribute ausgaben.
77 78 79 |
# File 'lib/abgabenrechner.rb', line 77 def ausgaben @ausgaben end |
Instance Method Details
#on_end_document ⇒ Object
90 91 92 |
# File 'lib/abgabenrechner.rb', line 90 def on_end_document return @ausgaben end |
#on_start_document ⇒ Object
79 80 81 |
# File 'lib/abgabenrechner.rb', line 79 def on_start_document @ausgaben = Hash.new() end |
#on_start_element(element, attributes) ⇒ Object
84 85 86 87 88 |
# File 'lib/abgabenrechner.rb', line 84 def on_start_element(element, attributes) if element == 'ausgabe' @ausgaben.store(attributes['name'].downcase.to_sym, attributes['value'].to_i ) end end |