Class: HOC::Hits

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

Overview

Set of hits.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dateObject (readonly)

Returns the value of attribute date.



28
29
30
# File 'lib/hoc/hits.rb', line 28

def date
  @date
end

#totalObject (readonly)

Returns the value of attribute total.



28
29
30
# File 'lib/hoc/hits.rb', line 28

def total
  @total
end