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.



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

def initialize(date, total)
  @date = date
  @total = total
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



31
32
33
# File 'lib/hoc/hits.rb', line 31

def date
  @date
end

#totalObject (readonly)

Returns the value of attribute total.



31
32
33
# File 'lib/hoc/hits.rb', line 31

def total
  @total
end