Class: ActiveAnalytics::ViewsPerDay::Page

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(host, path, total) ⇒ Page

Returns a new instance of Page.



20
21
22
# File 'app/models/active_analytics/views_per_day.rb', line 20

def initialize(host, path, total)
  @host, @path, @total = host, path, total
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



19
20
21
# File 'app/models/active_analytics/views_per_day.rb', line 19

def host
  @host
end

#pathObject (readonly)

Returns the value of attribute path.



19
20
21
# File 'app/models/active_analytics/views_per_day.rb', line 19

def path
  @path
end

#totalObject (readonly)

Returns the value of attribute total.



19
20
21
# File 'app/models/active_analytics/views_per_day.rb', line 19

def total
  @total
end

Instance Method Details

#urlObject



24
25
26
# File 'app/models/active_analytics/views_per_day.rb', line 24

def url
  host + path
end