Module: FxAggregate::CommandRecorder

Defined in:
lib/fx-aggregate/command_recorder.rb

Instance Method Summary collapse

Instance Method Details

#create_aggregate(*args) ⇒ Object



3
4
5
# File 'lib/fx-aggregate/command_recorder.rb', line 3

def create_aggregate(*args)
  record(:create_aggregate, args)
end

#drop_aggregate(*args) ⇒ Object



7
8
9
# File 'lib/fx-aggregate/command_recorder.rb', line 7

def drop_aggregate(*args)
  record(:drop_aggregate, args)
end

#invert_create_aggregate(args) ⇒ Object



15
16
17
# File 'lib/fx-aggregate/command_recorder.rb', line 15

def invert_create_aggregate(args)
  [:drop_aggregate, args]
end

#invert_drop_aggregate(args) ⇒ Object



19
20
21
# File 'lib/fx-aggregate/command_recorder.rb', line 19

def invert_drop_aggregate(args)
  perform_inversion(:create_aggregate, args)
end

#invert_update_aggregate(args) ⇒ Object



23
24
25
# File 'lib/fx-aggregate/command_recorder.rb', line 23

def invert_update_aggregate(args)
  perform_inversion(:update_aggregate, args)
end

#update_aggregate(*args) ⇒ Object



11
12
13
# File 'lib/fx-aggregate/command_recorder.rb', line 11

def update_aggregate(*args)
  record(:update_aggregate, args)
end