Sha256: c3130fa7ba412ccf7337b948b3996270f12a4c67186b3fe94b120a8f991f1242

Contents?: true

Size: 347 Bytes

Versions: 6

Compression:

Stored size: 347 Bytes

Contents

module Vmstator

  class SlabInfo
    # attrs for each attribute
    attr_reader :caches

    def initialize(data=false)
      @caches = []
      if data
        update(data)
      end
      true
    end

    def update(data)
      if data
        @caches << Cache.new(data)
      else
        return false
      end
      true
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vmstator-2.1.0 lib/vmstator/linux/slab_info.rb
vmstator-2.0.4 lib/vmstator/slab_info.rb
vmstator-2.0.3 lib/vmstator/slab_info.rb
vmstator-2.0.2 lib/vmstator/slab_info.rb
vmstator-2.0.1 lib/vmstator/slab_info.rb
vmstator-2.0.0 lib/vmstator/slab_info.rb