Class: SupplejackApi::InteractionMetricsWorker::InteractionUpdater
- Inherits:
-
Object
- Object
- SupplejackApi::InteractionMetricsWorker::InteractionUpdater
- Defined in:
- app/workers/supplejack_api/interaction_metrics_worker.rb
Overview
Interface for interaction updaters Interaction updaters are tied to a specific interaction model and know how to turn a list of interaction models into a model that represents a single day of interactions for that model
Interaction updaters are registered in config/initializers/interaction_updaters.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Model class that logs interactions for this updater to process.
Instance Method Summary collapse
-
#process(_) ⇒ Object
Takes in an array of interaction models and converts them into a model that represents days worth of interactions.
Instance Attribute Details
#model ⇒ Object (readonly)
Model class that logs interactions for this updater to process
35 36 37 |
# File 'app/workers/supplejack_api/interaction_metrics_worker.rb', line 35 def model @model end |
Instance Method Details
#process(_) ⇒ Object
Takes in an array of interaction models and converts them into a model that represents days worth of interactions
42 |
# File 'app/workers/supplejack_api/interaction_metrics_worker.rb', line 42 def process(_); end |