Module: AggregateStreams::Aggregation::Transform

Defined in:
lib/aggregate_streams/aggregation.rb

Class Method Summary collapse

Class Method Details

.instance(raw_data) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/aggregate_streams/aggregation.rb', line 38

def self.instance(raw_data)
  sequences = Casing::Camel.(raw_data[:sequences], symbol_to_string: true)

  Aggregation.build({
    :sequences => sequences
  })
end

.raw_data(aggregation) ⇒ Object



34
35
36
# File 'lib/aggregate_streams/aggregation.rb', line 34

def self.raw_data(aggregation)
  aggregation.to_h
end