Sha256: 44a871bd89b623ed70e4d46aa31332ca3abfd11ef853a2e3964af097769e39d0
Contents?: true
Size: 587 Bytes
Versions: 100
Compression:
Stored size: 587 Bytes
Contents
require 'new_relic/metric_parser' module NewRelic module MetricParser class ActiveMerchant < NewRelic::MetricParser::MetricParser def is_active_merchant?; true; end def is_active_merchant_gateway? segments[1] == 'gateway' end def is_active_merchant_operation? segments[1] == 'operation' end def gateway_name # ends in "Gateway" - trim that off segments[2][0..-8].titleize end def operation_name segments[2] end def short_name segments[2] end end end end
Version data entries
100 entries across 100 versions & 5 rubygems