Class: MuchResult::Aggregate

Inherits:
Object
  • Object
show all
Defined in:
lib/much-result/aggregate.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#callObject



16
17
18
# File 'lib/much-result/aggregate.rb', line 16

def call
  combine_values(@values)
end