Class: WBEM::SCOPE

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(class_ = false, association = false, reference = false, property = false, method = false, parameter = false, indication = false) ⇒ SCOPE

<!ELEMENT SCOPE EMPTY>

<!ATTLIST SCOPE 
     CLASS        (true|false)      'false'
     ASSOCIATION  (true|false)      'false'
     REFERENCE    (true|false)      'false'
     PROPERTY     (true|false)      'false'
     METHOD       (true|false)      'false'
     PARAMETER    (true|false)      'false'
     INDICATION   (true|false)      'false'>
"""


224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/wbem/cim_xml.rb', line 224

def initialize(class_ = false, association = false,
         reference = false, property = false, method = false,
         parameter = false, indication = false)
    super("SCOPE")
    self.add_attribute("CLASS", class_.to_s)
    self.add_attribute("ASSOCIATION", association.to_s)
    self.add_attribute("REFERENCE", reference.to_s)
    self.add_attribute("PROPERTY", property.to_s)
    self.add_attribute("METHOD", method.to_s)
    self.add_attribute("PARAMETER", parameter.to_s)
    self.add_attribute("INDICATION", indication.to_s)
end