Class: VisitPageDailyRefresh
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- VisitPageDailyRefresh
- Defined in:
- app/models/visit_page_daily_refresh.rb
Overview
Durable completion marker for one VisitPageDailyCount calendar-day rebuild.
A separate marker is necessary because a day with zero matching visits is a
valid completed result and therefore cannot be inferred from count rows.
Constant Summary
Constants included from Models::Schedulable
Models::Schedulable::SIMPLE_FORM_OPTIONS
Instance Attribute Summary collapse
-
#completed_at ⇒ Time
When the refresh finished.
-
#page_count ⇒ Integer
Number of page rows written.
-
#source_visits_count ⇒ Integer
Number of source visit rows considered.
-
#visit_date ⇒ Date
Calendar day the refresh covers.
Method Summary
Methods inherited from ApplicationRecord
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
Methods included from Models::Schedulable
Methods included from Models::AfterCommittable
Methods included from Models::EventPublishable
Instance Attribute Details
#completed_at ⇒ Time
Returns When the refresh finished.
11 |
# File 'app/models/visit_page_daily_refresh.rb', line 11 validates :visit_date, :completed_at, presence: true |
#page_count ⇒ Integer
Returns Number of page rows written.
17 18 |
# File 'app/models/visit_page_daily_refresh.rb', line 17 validates :source_visits_count, :page_count, numericality: { only_integer: true, greater_than_or_equal_to: 0 } |
#source_visits_count ⇒ Integer
Returns Number of source visit rows considered.
17 18 |
# File 'app/models/visit_page_daily_refresh.rb', line 17 validates :source_visits_count, :page_count, numericality: { only_integer: true, greater_than_or_equal_to: 0 } |
#visit_date ⇒ Date
Returns Calendar day the refresh covers.
11 |
# File 'app/models/visit_page_daily_refresh.rb', line 11 validates :visit_date, :completed_at, presence: true |