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