class HeimdallApm::MetricName

Metric name used in visitor's metrics hash

Attributes

name[R]
scope[R]
type[R]

Public Class Methods

new(type, name, scope = nil) click to toggle source
# File lib/heimdall_apm/metric_name.rb, line 7
def initialize(type, name, scope = nil)
  @type   = type
  @name   = name
  @scope  = scope
end

Public Instance Methods

hash() click to toggle source
# File lib/heimdall_apm/metric_name.rb, line 13
def hash
  h = type.hash ^ name.hash
  h ^= scope.hash if scope
  h
end