Class: PrometheusExporter::OjCompat

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

Class Method Summary collapse

Class Method Details

.dump(obj) ⇒ Object



18
19
20
# File 'lib/prometheus_exporter.rb', line 18

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

.parse(obj) ⇒ Object



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

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