Class: WBEM::CIMClassName
- Inherits:
-
CIMObjectLocation
- Object
- XMLObject
- CIMObjectLocation
- WBEM::CIMClassName
- Defined in:
- lib/wbem/cim_obj.rb
Instance Attribute Summary
Attributes inherited from CIMObjectLocation
#classname, #host, #instancename, #localnamespacepath
Instance Method Summary collapse
-
#initialize(classname) ⇒ CIMClassName
constructor
A new instance of CIMClassName.
- #to_s ⇒ Object
- #tocimxml ⇒ Object
Methods inherited from CIMObjectLocation
#<=>, #CLASSNAME, #HOST, #LOCALNAMESPACEPATH, #NAMESPACEPATH, #eql?, #hash
Methods inherited from XMLObject
#cmpname, #eql?, #hash, #nilcmp, #toxml
Constructor Details
#initialize(classname) ⇒ CIMClassName
Returns a new instance of CIMClassName.
254 255 256 257 258 259 260 261 262 263 264 |
# File 'lib/wbem/cim_obj.rb', line 254 def initialize(classname) unless classname.kind_of?(String) raise TypeError, "classname argument must be a string" end # TODO: There are some odd restrictions on what a CIM # classname can look like (i.e must start with a # non-underscore and only one underscore per classname). super() self.classname=classname end |
Instance Method Details
#to_s ⇒ Object
270 271 272 |
# File 'lib/wbem/cim_obj.rb', line 270 def to_s self.classname end |
#tocimxml ⇒ Object
266 267 268 |
# File 'lib/wbem/cim_obj.rb', line 266 def tocimxml self.CLASSNAME end |