Class: WBEM::CIMLocalClassPath

Inherits:
CIMObjectLocation show all
Defined in:
lib/wbem/cim_obj.rb

Instance Attribute Summary

Attributes inherited from CIMObjectLocation

#classname, #host, #instancename, #localnamespacepath

Instance Method Summary collapse

Methods inherited from CIMObjectLocation

#<=>, #CLASSNAME, #HOST, #LOCALNAMESPACEPATH, #NAMESPACEPATH, #eql?, #hash

Methods inherited from XMLObject

#cmpname, #eql?, #hash, #nilcmp, #toxml

Constructor Details

#initialize(localnamespacepath, classname) ⇒ CIMLocalClassPath

Returns a new instance of CIMLocalClassPath.



300
301
302
303
304
305
306
307
308
309
310
311
# File 'lib/wbem/cim_obj.rb', line 300

def initialize(localnamespacepath, classname)
    unless localnamespacepath.kind_of?(String)
        raise TypeError, "localnamespacepath argument must be a string"
    end
    unless classname.kind_of?(String)
        raise TypeError, "classname argument must be a string"
    end
    
    super()
    self.classname=classname
    self.localnamespacepath=localnamespacepath
end

Instance Method Details

#to_sObject



317
318
319
# File 'lib/wbem/cim_obj.rb', line 317

def to_s
    "#{self.localnamespacepath}:#{self.classname}"
end

#tocimxmlObject



313
314
315
# File 'lib/wbem/cim_obj.rb', line 313

def tocimxml
    LOCALCLASSPATH.new(self.LOCALNAMESPACEPATH, self.CLASSNAME)
end