Class: SimpleRecord::Stats
- Inherits:
-
Object
- Object
- SimpleRecord::Stats
- Defined in:
- lib/simple_record/stats.rb
Instance Attribute Summary collapse
-
#deletes ⇒ Object
Returns the value of attribute deletes.
-
#puts ⇒ Object
Returns the value of attribute puts.
-
#selects ⇒ Object
Returns the value of attribute selects.
Instance Method Summary collapse
- #clear ⇒ Object
-
#initialize ⇒ Stats
constructor
A new instance of Stats.
Constructor Details
#initialize ⇒ Stats
Returns a new instance of Stats.
5 6 7 8 9 |
# File 'lib/simple_record/stats.rb', line 5 def initialize @selects = 0 @puts = 0 @deletes = 0 end |
Instance Attribute Details
#deletes ⇒ Object
Returns the value of attribute deletes.
3 4 5 |
# File 'lib/simple_record/stats.rb', line 3 def deletes @deletes end |
#puts ⇒ Object
Returns the value of attribute puts.
3 4 5 |
# File 'lib/simple_record/stats.rb', line 3 def puts @puts end |
#selects ⇒ Object
Returns the value of attribute selects.
3 4 5 |
# File 'lib/simple_record/stats.rb', line 3 def selects @selects end |
Instance Method Details
#clear ⇒ Object
11 12 13 14 15 |
# File 'lib/simple_record/stats.rb', line 11 def clear self.selects = 0 self.puts = 0 self.deletes = 0 end |