Class: ArtirixDataModels::CommonAggregation
- Inherits:
-
Object
- Object
- ArtirixDataModels::CommonAggregation
- Includes:
- Inspectable
- Defined in:
- lib/artirix_data_models/aggregation.rb
Direct Known Subclasses
Constant Summary
Constants included from Inspectable
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name) ⇒ CommonAggregation
constructor
A new instance of CommonAggregation.
- #pretty_name ⇒ Object
Methods included from Inspectable
#data_hash_for_inspect, #inspect, #inspect_with_tab
Constructor Details
#initialize(name) ⇒ CommonAggregation
Returns a new instance of CommonAggregation.
6 7 8 |
# File 'lib/artirix_data_models/aggregation.rb', line 6 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/artirix_data_models/aggregation.rb', line 4 def name @name end |
Class Method Details
.from_json(definition, value_class = Aggregation::Value) ⇒ Object
10 11 12 |
# File 'lib/artirix_data_models/aggregation.rb', line 10 def self.from_json(definition, value_class = Aggregation::Value) DAORegistry.aggregations_factory.aggregation_from_json(definition, value_class: value_class, aggregation_class: self) end |
Instance Method Details
#pretty_name ⇒ Object
14 15 16 |
# File 'lib/artirix_data_models/aggregation.rb', line 14 def pretty_name @pretty_name ||= load_pretty_name end |