Class: WBEM::CIMNamespacePath
- Inherits:
-
CIMObjectLocation
- Object
- XMLObject
- CIMObjectLocation
- WBEM::CIMNamespacePath
- Defined in:
- lib/wbem/cim_obj.rb
Instance Attribute Summary
Attributes inherited from CIMObjectLocation
#classname, #host, #instancename, #localnamespacepath
Instance Method Summary collapse
-
#initialize(host, localnamespacepath) ⇒ CIMNamespacePath
constructor
A new instance of CIMNamespacePath.
- #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(host, localnamespacepath) ⇒ CIMNamespacePath
Returns a new instance of CIMNamespacePath.
277 278 279 280 281 282 283 284 285 286 287 288 |
# File 'lib/wbem/cim_obj.rb', line 277 def initialize(host, localnamespacepath) unless host.kind_of?(String) raise TypeError, "host argument must be a string" end unless localnamespacepath.kind_of?(String) raise TypeError, "localnamespacepath argument must be a string" end super() self.host=host self.localnamespacepath=localnamespacepath end |
Instance Method Details
#to_s ⇒ Object
294 295 296 |
# File 'lib/wbem/cim_obj.rb', line 294 def to_s "//#{self.host}/#{self.localnamespacepath}" end |
#tocimxml ⇒ Object
290 291 292 |
# File 'lib/wbem/cim_obj.rb', line 290 def tocimxml self.NAMESPACEPATH end |