Sha256: 4c37feafcd1b34c1b57acdb10f9e911c3df91863023aeaee3c2bce19eb187d01

Contents?: true

Size: 196 Bytes

Versions: 13

Compression:

Stored size: 196 Bytes

Contents

# frozen_string_literal: true

module ServiceSkeleton
  module MetricMethodName
    def method_name(svc_name)
      @name.to_s.gsub(/\A#{Regexp.quote(svc_name)}_/i, '').downcase
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
service_skeleton-2.2.0 lib/service_skeleton/metric_method_name.rb
service_skeleton-2.1.0 lib/service_skeleton/metric_method_name.rb
service_skeleton-1.0.5 lib/service_skeleton/metric_method_name.rb
service_skeleton-2.0.2 lib/service_skeleton/metric_method_name.rb
service_skeleton-2.0.1 lib/service_skeleton/metric_method_name.rb
service_skeleton-2.0.0 lib/service_skeleton/metric_method_name.rb
service_skeleton-1.0.4 lib/service_skeleton/metric_method_name.rb
service_skeleton-0.0.0.1.ENOTAG lib/service_skeleton/metric_method_name.rb
service_skeleton-1.0.3 lib/service_skeleton/metric_method_name.rb
service_skeleton-1.0.2 lib/service_skeleton/metric_method_name.rb
service_skeleton-1.0.1 lib/service_skeleton/metric_method_name.rb
service_skeleton-0.0.0.49.g47046b9 lib/service_skeleton/metric_method_name.rb
service_skeleton-0.0.0.48.g4a40599 lib/service_skeleton/metric_method_name.rb