class Sequencer
  class Unit
    module Import
      module Common
        module Model
          module Statistics
            module Mixin
              module Common
                private

                def actions
                  %i[skipped created updated unchanged failed deactivated]
                end

                def results
                  %i[sum total]
                end

                def empty_diff
                  possible_actions.collect { |key| [key, 0] }.to_h
                end

                def possible_actions
                  @possible_actions ||= actions + results
                end
              end
            end
          end
        end
      end
    end
  end
end
