Methods

Files

Class/Module Index [+]

Quicksearch

Fog::Compute::LibvirtUtil

Public Instance Methods

document(path, attribute=nil) click to toggle source

finds a value from xml

# File lib/fog/libvirt/models/compute/util.rb, line 10
def document path, attribute=nil
  return nil if new?
  xml = REXML::Document.new(@xml_desc)
  attribute.nil? ? xml.elements[path].text : xml.elements[path].attributes[attribute]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.