Class: Gitlab::Metrics::NullMetric

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/gitlab/metrics/null_metric.rb

Overview

Mocks ::Prometheus::Client::Metric and all derived metrics

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



9
10
11
# File 'lib/gitlab/metrics/null_metric.rb', line 9

def method_missing(name, *args, &block)
  nil
end