Class: WBEM::ERROR
- Inherits:
-
CIMElement
- Object
- REXML::Element
- CIMElement
- WBEM::ERROR
- Defined in:
- lib/wbem/cim_xml.rb
Instance Method Summary collapse
-
#initialize(code, description = nil, instances = []) ⇒ ERROR
constructor
<!ELEMENT ERROR (INSTANCE*)> <!ATTLIST ERROR CODE CDATA #REQUIRED DESCRIPTION CDATA #IMPLIED> “”“.
Methods inherited from CIMElement
#add_elements, #add_optional_attribute, #add_optional_element, #setName, #toxml
Constructor Details
#initialize(code, description = nil, instances = []) ⇒ ERROR
<!ELEMENT ERROR (INSTANCE*)>
<!ATTLIST ERROR
CODE CDATA #REQUIRED DESCRIPTION CDATA #IMPLIED>
"""
1352 1353 1354 1355 1356 1357 |
# File 'lib/wbem/cim_xml.rb', line 1352 def initialize(code, description = nil, instances = []) super("ERROR") self.add_attribute("CODE", code) self.add_optional_attribute("DESCRIPTION", description) self.add_elements(instances) end |