Class: ActiveAnalytics::ViewsPerDay::Page
- Inherits:
-
Object
- Object
- ActiveAnalytics::ViewsPerDay::Page
- Defined in:
- app/models/active_analytics/views_per_day.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(host, path, total) ⇒ Page
constructor
A new instance of Page.
- #url ⇒ Object
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
#host ⇒ Object (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 |
#path ⇒ Object (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 |
#total ⇒ Object (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
#url ⇒ Object
24 25 26 |
# File 'app/models/active_analytics/views_per_day.rb', line 24 def url host + path end |