Class: Vmstator::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/vmstator/stats.rb

Direct Known Subclasses

MacOSPages, Memory

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = false) ⇒ Stats

Returns a new instance of Stats.



5
6
7
8
9
10
# File 'lib/vmstator/stats.rb', line 5

def initialize(data=false)
  if data
    update(data)
  end
  true
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



3
4
5
# File 'lib/vmstator/stats.rb', line 3

def data
  @data
end