Class: SupplejackApi::InteractionMetricsWorker::InteractionUpdater

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#modelObject (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

Parameters:

  • models (Array<Any>)

    list of interaction models to process

Returns:

  • Nothing


42
# File 'app/workers/supplejack_api/interaction_metrics_worker.rb', line 42

def process(_); end