Module: Segmentation
- Defined in:
- lib/has_metrics/segmentation.rb
Overview
include Segmentation
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#update_segment!(category) ⇒ Object
INSTANCE METHODS ADDED.
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/has_metrics/segmentation.rb', line 3 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#update_segment!(category) ⇒ Object
INSTANCE METHODS ADDED
32 33 34 |
# File 'lib/has_metrics/segmentation.rb', line 32 def update_segment!(category) update_attribute("by_#{category}", send("segment_by_#{category}")) end |