Class: WBEM::CIMLocalClassPath
- Inherits:
-
CIMObjectLocation
- Object
- XMLObject
- CIMObjectLocation
- WBEM::CIMLocalClassPath
- Defined in:
- lib/wbem/cim_obj.rb
Instance Attribute Summary
Attributes inherited from CIMObjectLocation
#classname, #host, #instancename, #localnamespacepath
Instance Method Summary collapse
-
#initialize(localnamespacepath, classname) ⇒ CIMLocalClassPath
constructor
A new instance of CIMLocalClassPath.
- #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(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_s ⇒ Object
317 318 319 |
# File 'lib/wbem/cim_obj.rb', line 317 def to_s "#{self.localnamespacepath}:#{self.classname}" end |
#tocimxml ⇒ Object
313 314 315 |
# File 'lib/wbem/cim_obj.rb', line 313 def tocimxml LOCALCLASSPATH.new(self.LOCALNAMESPACEPATH, self.CLASSNAME) end |