Class: WBEM::HOST

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

Instance Method Summary collapse

Methods inherited from CIMElement

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

Constructor Details

#initialize(pcdata) ⇒ HOST

<!ELEMENT HOST (#PCDATA)>

"""


432
433
434
435
436
437
438
# File 'lib/wbem/cim_xml.rb', line 432

def initialize(pcdata)
    super("HOST")
        unless pcdata.kind_of?(String) # unicode?
            raise TypeError, "value argument must be a string"
        end
    self.add_text(pcdata)
end