Class: HOC::Hits
- Inherits:
-
Object
- Object
- HOC::Hits
- Defined in:
- lib/hoc/hits.rb
Overview
Set of hits.
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(date, total) ⇒ Hits
constructor
A new instance of Hits.
Constructor Details
#initialize(date, total) ⇒ Hits
Returns a new instance of Hits.
24 25 26 27 |
# File 'lib/hoc/hits.rb', line 24 def initialize(date, total) @date = date @total = total end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
28 29 30 |
# File 'lib/hoc/hits.rb', line 28 def date @date end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
28 29 30 |
# File 'lib/hoc/hits.rb', line 28 def total @total end |