Class: WBEM::CIMType
- Inherits:
-
Object
- Object
- WBEM::CIMType
- Includes:
- Comparable
- Defined in:
- lib/wbem/cim_types.rb
Instance Attribute Summary collapse
-
#cimtype ⇒ Object
“”“Base type for all CIM types.”“”.
-
#value ⇒ Object
“”“Base type for all CIM types.”“”.
Instance Method Summary collapse
- #<=>(obj) ⇒ Object
-
#initialize(cimtype, value) ⇒ CIMType
constructor
A new instance of CIMType.
- #to_s ⇒ Object
Constructor Details
#initialize(cimtype, value) ⇒ CIMType
Returns a new instance of CIMType.
33 34 35 36 |
# File 'lib/wbem/cim_types.rb', line 33 def initialize(cimtype, value) @cimtype = cimtype @value = value end |
Instance Attribute Details
#cimtype ⇒ Object
“”“Base type for all CIM types.”“”
31 32 33 |
# File 'lib/wbem/cim_types.rb', line 31 def cimtype @cimtype end |
#value ⇒ Object
“”“Base type for all CIM types.”“”
31 32 33 |
# File 'lib/wbem/cim_types.rb', line 31 def value @value end |
Instance Method Details
#<=>(obj) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/wbem/cim_types.rb', line 40 def <=>(obj) if obj.is_a?(CIMType) @value <=> obj.value else @value <=> obj end end |
#to_s ⇒ Object
37 38 39 |
# File 'lib/wbem/cim_types.rb', line 37 def to_s @value.to_s end |