Class: Vmstator::SlabInfo
- Inherits:
-
Object
- Object
- Vmstator::SlabInfo
- Defined in:
- lib/vmstator/linux/slab_info.rb
Instance Attribute Summary collapse
-
#caches ⇒ Object
readonly
attrs for each attribute.
Instance Method Summary collapse
-
#initialize(data = false) ⇒ SlabInfo
constructor
A new instance of SlabInfo.
- #update(data) ⇒ Object
Constructor Details
#initialize(data = false) ⇒ SlabInfo
Returns a new instance of SlabInfo.
7 8 9 10 11 12 13 |
# File 'lib/vmstator/linux/slab_info.rb', line 7 def initialize(data=false) @caches = [] if data update(data) end true end |
Instance Attribute Details
#caches ⇒ Object (readonly)
attrs for each attribute
5 6 7 |
# File 'lib/vmstator/linux/slab_info.rb', line 5 def caches @caches end |