Class: ActiveAnalytics::ViewsPerDay::Day

Inherits:
Object
  • Object
show all
Defined in:
app/models/active_analytics/views_per_day.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(day, total) ⇒ Day

Returns a new instance of Day.



31
32
33
# File 'app/models/active_analytics/views_per_day.rb', line 31

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

Instance Attribute Details

#dayObject (readonly)

Returns the value of attribute day.



30
31
32
# File 'app/models/active_analytics/views_per_day.rb', line 30

def day
  @day
end

#totalObject (readonly)

Returns the value of attribute total.



30
31
32
# File 'app/models/active_analytics/views_per_day.rb', line 30

def total
  @total
end