Class: Vmstator::Stats
- Inherits:
-
Object
- Object
- Vmstator::Stats
- Defined in:
- lib/vmstator/stats.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data = false) ⇒ Stats
constructor
A new instance of Stats.
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
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/vmstator/stats.rb', line 3 def data @data end |