Module: LogStruct::Log::Shared::MergeAdditionalDataFields

Instance Method Summary collapse

Instance Method Details

#merge_additional_data_fields(hash) ⇒ void

This method returns an undefined value.

Parameters:

  • hash (Hash{Symbol => T.untyped})


17
18
19
20
21
22
23
# File 'lib/log_struct/shared/merge_additional_data_fields.rb', line 17

def merge_additional_data_fields(hash)
  ad = additional_data
  return unless ad
  ad.each do |key, value|
    hash[key.to_sym] = value
  end
end