lib/pdk/report/event.rb
def sanitise_data(data)
        result = data.dup
        data.each do |key, value|
          key = key.to_sym unless key.is_a?(Symbol)
          method = "sanitise_#{key}"
          result[key] = send(method, value) if respond_to?(method, true)
        end

        result
      end
# Processes the data hash used to initialise the event, validating and
# munging the values as necessary.
#
# @param data [Hash{Symbol => Object}] (see #initialize)
#
# @return [Hash{Symbol => String}] A copy of the data hash passed to the
#   method with sanitised values.
#
# @raise [ArgumentError] (see #sanitise_file)
# @raise [ArgumentError] (see #sanitise_state)
# @raise [ArgumentError] (see #sanitise_source)
Processes the data hash used to initialise the event, validating and
munging the values as necessary.
Processes the data hash used to initialise the event validating and munging the values as necessary .
def sanitise_data(data)
        result = data.dup
        data.each do |key, value|
          key = key.to_sym unless key.is_a?(Symbol)
          method = "sanitise_#{key}"
          result[key] = send(method, value) if respond_to?(method, true)
        end
        result
      end
def sanitise_data ( data ) result = data . dup data . each do | key , value | key = key . to_sym unless key . is_a? ( Symbol ) method = "sanitise_#{key}" result [ key ] = send ( method , value ) if respond_to? ( method , true ) end result end
Processes the data hash used to initialise the event, validating and
munging the values as necessary.
Processes the data hash used to initialise the event validating and munging the values as necessary .
A copy of the data hash passed to the method with sanitised values.
A copy of the data hash passed to the method with sanitised values .
Hash{Symbol => String}
None
None
None
data
None