class SystemMetrics::Instrument::ActionView

Public Class Methods

new() click to toggle source
Calls superclass method SystemMetrics::Instrument::Base::new
# File lib/system_metrics/instrument/action_view.rb, line 5
def initialize
  super /\.action_view$/
end

Public Instance Methods

prepare(event) click to toggle source
# File lib/system_metrics/instrument/action_view.rb, line 9
def prepare(event)
  event.payload.each do |key, value|
    case value
    when NilClass
    when String
      event.payload[key] = prune_path(value)
    else
      event.payload[key] = value
    end
  end
end