Class: WBEM::CIMInt

Inherits:
CIMType show all
Defined in:
lib/wbem/cim_types.rb

Overview

CIM integer types

Direct Known Subclasses

Sint16, Sint32, Sint64, Sint8, Uint16, Uint32, Uint64, Uint8

Instance Attribute Summary

Attributes inherited from CIMType

#cimtype, #value

Instance Method Summary collapse

Methods inherited from CIMType

#<=>, #to_s

Constructor Details

#initialize(arg, base, cimtype) ⇒ CIMInt

Returns a new instance of CIMInt.



51
52
53
# File 'lib/wbem/cim_types.rb', line 51

def initialize(arg, base, cimtype) 
    super(cimtype, arg.is_a?(String) ? arg.to_i(base) : arg.to_i)
end