class Vmstator::DiskStatistics

Attributes

disks[R]

attrs for each attribute

Public Class Methods

new(data=false) click to toggle source
# File lib/vmstator/linux/disk_statistics.rb, line 7
def initialize(data=false)
  @disks = []
  if data
    update(data)
  end
  true
end

Public Instance Methods

update(data) click to toggle source
# File lib/vmstator/linux/disk_statistics.rb, line 15
def update(data)
  if data
    @disks << Disk.new(data)
  else
    return false
  end
  true
end