Class: ModelLog::Log::Processor

Inherits:
Object
  • Object
show all
Includes:
Initializer
Defined in:
lib/model_log/log/processor.rb

Instance Method Summary collapse

Methods included from Initializer

#initialize

Instance Method Details

#dataObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/model_log/log/processor.rb', line 6

def data
  case @action
  when :create
    created_data
  when :update
    updated_data
  when :destroy
    destroyed_data
  end
end