Class: MuchResult::Aggregate
- Inherits:
-
Object
- Object
- MuchResult::Aggregate
- Defined in:
- lib/much-result/aggregate.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(values) ⇒ Aggregate
constructor
A new instance of Aggregate.
Constructor Details
#initialize(values) ⇒ Aggregate
Returns a new instance of Aggregate.
12 13 14 |
# File 'lib/much-result/aggregate.rb', line 12 def initialize(values) @values = values end |
Class Method Details
.call(values) ⇒ Object
8 9 10 |
# File 'lib/much-result/aggregate.rb', line 8 def self.call(values) new(values).call end |
Instance Method Details
#call ⇒ Object
16 17 18 |
# File 'lib/much-result/aggregate.rb', line 16 def call combine_values(@values) end |