Class: PrometheusExporter::OjCompat

Inherits:
Object
  • Object
show all
Defined in:
lib/prometheus_exporter.rb

Class Method Summary collapse

Class Method Details

.dump(obj) ⇒ Object



20
21
22
# File 'lib/prometheus_exporter.rb', line 20

def self.dump(obj)
  Oj.dump(obj, mode: :compat)
end

.parse(obj) ⇒ Object



16
17
18
# File 'lib/prometheus_exporter.rb', line 16

def self.parse(obj)
  Oj.compat_load(obj)
end