Class: ArtirixDataModels::MetricAggregation
- Inherits:
-
CommonAggregation
- Object
- CommonAggregation
- ArtirixDataModels::MetricAggregation
- Defined in:
- lib/artirix_data_models/aggregation.rb
Constant Summary
Constants included from WithDAORegistry
WithDAORegistry::DEFAULT_DAO_REGISTRY_LOADER
Constants included from Inspectable
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from CommonAggregation
Attributes included from WithDAORegistry
Instance Method Summary collapse
- #calculate_filtered(_filtered_values = []) ⇒ Object
- #data_hash ⇒ Object
-
#initialize(name, value) ⇒ MetricAggregation
constructor
A new instance of MetricAggregation.
Methods inherited from CommonAggregation
Methods included from WithDAORegistry
#dao_registry, #dao_registry=, #default_dao_registry, loader_or_registry_or_default, #set_dao_registry, #set_dao_registry_and_loader, #set_dao_registry_loader, #set_default_dao_registry_loader
Methods included from Inspectable
#data_hash_for_inspect, #inspect, #inspect_with_tab
Constructor Details
#initialize(name, value) ⇒ MetricAggregation
Returns a new instance of MetricAggregation.
151 152 153 154 |
# File 'lib/artirix_data_models/aggregation.rb', line 151 def initialize(name, value) super name @value = value end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
149 150 151 |
# File 'lib/artirix_data_models/aggregation.rb', line 149 def value @value end |
Instance Method Details
#calculate_filtered(_filtered_values = []) ⇒ Object
163 164 165 166 |
# File 'lib/artirix_data_models/aggregation.rb', line 163 def calculate_filtered(_filtered_values = []) # NOOP self end |
#data_hash ⇒ Object
156 157 158 159 160 161 |
# File 'lib/artirix_data_models/aggregation.rb', line 156 def data_hash { name: name, value: value } end |