Class: OpenNebula::ParsePoolSaxBase

Inherits:
Object
  • Object
show all
Defined in:
lib/opennebula/xml_utils.rb

Direct Known Subclasses

ParsePoolSax

Instance Method Summary collapse

Constructor Details

#initialize(pool_name, elem_name) ⇒ ParsePoolSaxBase

Returns a new instance of ParsePoolSaxBase.



100
101
102
# File 'lib/opennebula/xml_utils.rb', line 100

def initialize(pool_name, elem_name)
    @pool_sax=ParsePoolSax::PoolSax.new(pool_name, elem_name)
end

Instance Method Details

#parse(str) ⇒ Object



104
105
106
107
108
# File 'lib/opennebula/xml_utils.rb', line 104

def parse(str)
    @pool_sax.clear
    sax_parse(str)
    @pool_sax.pool
end