Class: Enginevib::Stats
- Inherits:
-
Object
- Object
- Enginevib::Stats
- Defined in:
- lib/enginevib/stats.rb
Overview
A PORO. Should be faster than struct and hash.
Instance Attribute Summary collapse
-
#memory ⇒ Object
Returns the value of attribute memory.
-
#warning ⇒ Object
Returns the value of attribute warning.
-
#window ⇒ Object
Returns the value of attribute window.
-
#window_avg ⇒ Object
Returns the value of attribute window_avg.
Instance Method Summary collapse
-
#initialize ⇒ Stats
constructor
A new instance of Stats.
Constructor Details
#initialize ⇒ Stats
Returns a new instance of Stats.
6 7 8 9 10 11 |
# File 'lib/enginevib/stats.rb', line 6 def initialize @warning = false @window = 0 @memory = 0 @window_avg = 0 end |
Instance Attribute Details
#memory ⇒ Object
Returns the value of attribute memory.
4 5 6 |
# File 'lib/enginevib/stats.rb', line 4 def memory @memory end |
#warning ⇒ Object
Returns the value of attribute warning.
4 5 6 |
# File 'lib/enginevib/stats.rb', line 4 def warning @warning end |
#window ⇒ Object
Returns the value of attribute window.
4 5 6 |
# File 'lib/enginevib/stats.rb', line 4 def window @window end |
#window_avg ⇒ Object
Returns the value of attribute window_avg.
4 5 6 |
# File 'lib/enginevib/stats.rb', line 4 def window_avg @window_avg end |