Class: Enginevib::Stats

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

Overview

A PORO. Should be faster than struct and hash.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStats

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

#memoryObject

Returns the value of attribute memory.



4
5
6
# File 'lib/enginevib/stats.rb', line 4

def memory
  @memory
end

#warningObject

Returns the value of attribute warning.



4
5
6
# File 'lib/enginevib/stats.rb', line 4

def warning
  @warning
end

#windowObject

Returns the value of attribute window.



4
5
6
# File 'lib/enginevib/stats.rb', line 4

def window
  @window
end

#window_avgObject

Returns the value of attribute window_avg.



4
5
6
# File 'lib/enginevib/stats.rb', line 4

def window_avg
  @window_avg
end