Class: Workarea::Metrics::Affinity
- Inherits:
-
Object
- Object
- Workarea::Metrics::Affinity
show all
- Includes:
- ApplicationDocument
- Defined in:
- app/models/workarea/metrics/affinity.rb
Instance Method Summary
collapse
#releasable?
add_worker, assert_valid_config!, async, caching_classes?, disable, enable, inline, #run_callbacks, workers, workers_list
#embedded_children
Instance Method Details
#recent_category_ids(max: Workarea.config.affinity_default_recent_size, unique: false) ⇒ Object
16
17
18
|
# File 'app/models/workarea/metrics/affinity.rb', line 16
def recent_category_ids(max: Workarea.config.affinity_default_recent_size, unique: false)
recent_ids(category_ids, max: max, unique: unique)
end
|
#recent_product_ids(max: Workarea.config.affinity_default_recent_size, unique: false) ⇒ Object
12
13
14
|
# File 'app/models/workarea/metrics/affinity.rb', line 12
def recent_product_ids(max: Workarea.config.affinity_default_recent_size, unique: false)
recent_ids(product_ids, max: max, unique: unique)
end
|
#recent_search_ids(max: Workarea.config.affinity_default_recent_size, unique: false) ⇒ Object
20
21
22
|
# File 'app/models/workarea/metrics/affinity.rb', line 20
def recent_search_ids(max: Workarea.config.affinity_default_recent_size, unique: false)
recent_ids(search_ids, max: max, unique: unique)
end
|