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



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

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