Class: WBEM::MESSAGE

Inherits:
CIMElement show all
Defined in:
lib/wbem/cim_xml.rb

Overview

Message elements

Instance Method Summary collapse

Methods inherited from CIMElement

#add_elements, #add_optional_attribute, #add_optional_element, #setName, #toxml

Constructor Details

#initialize(data, message_id, protocol_version) ⇒ MESSAGE

<!ELEMENT MESSAGE (SIMPLEREQ | MULTIREQ | SIMPLERSP | MULTIRSP) |

                  MULTIEXPRSP)>
<!ATTLIST MESSAGE

ID CDATA #REQUIRED PROTOCOLVERSION CDATA #REQUIRED>

"""


1023
1024
1025
1026
1027
1028
# File 'lib/wbem/cim_xml.rb', line 1023

def initialize(data, message_id, protocol_version)
    super("MESSAGE")
    self.add_attribute("ID", message_id)
    self.add_attribute("PROTOCOLVERSION", protocol_version)
    self.add_element(data)
end