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.
27 28 29 30 |
# File 'lib/hoc/hits.rb', line 27 def initialize(date, total) @date = date @total = total end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
31 32 33 |
# File 'lib/hoc/hits.rb', line 31 def date @date end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
31 32 33 |
# File 'lib/hoc/hits.rb', line 31 def total @total end |