Class: BMF::Saxparser

Inherits:
Object
  • Object
show all
Includes:
XML::SaxParser::Callbacks
Defined in:
lib/abgabenrechner.rb

Defined Under Namespace

Classes: Ausgabe

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ausgabenObject

Returns the value of attribute ausgaben.



77
78
79
# File 'lib/abgabenrechner.rb', line 77

def ausgaben
  @ausgaben
end

Instance Method Details

#on_end_documentObject



90
91
92
# File 'lib/abgabenrechner.rb', line 90

def on_end_document
  return @ausgaben
end

#on_start_documentObject



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