Class: SimpleRecord::Stats

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStats

Returns a new instance of Stats.



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

def initialize
    @selects = 0
    @puts = 0
end

Instance Attribute Details

#putsObject

Returns the value of attribute puts.



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

def puts
  @puts
end

#selectsObject

Returns the value of attribute selects.



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

def selects
  @selects
end

Instance Method Details

#clearObject



10
11
12
13
# File 'lib/stats.rb', line 10

def clear
    self.selects = 0
    self.puts = 0
end