Module: TableSync::Instrument

Extended by:
Instrument
Included in:
Instrument
Defined in:
lib/table_sync/instrument.rb

Constant Summary collapse

NOTIFIER_REQUIRED_ARGS =
%i[event count direction].freeze

Instance Method Summary collapse

Instance Method Details

#notify(**args) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/table_sync/instrument.rb', line 8

def notify(**args)
  return unless TableSync.notify?
  raise(TableSync::InvalidConfig, error_message) if TableSync.notifier.nil?
  validate_args!(**args)

  TableSync.notifier.notify(**args)
end