Class: PrometheusExporter::OjCompat
- Inherits:
-
Object
- Object
- PrometheusExporter::OjCompat
- Defined in:
- lib/prometheus_exporter.rb
Class Method Summary collapse
Class Method Details
.dump(obj) ⇒ Object
15 16 17 |
# File 'lib/prometheus_exporter.rb', line 15 def self.dump(obj) Oj.dump(obj, mode: :compat) end |
.parse(obj) ⇒ Object
12 13 14 |
# File 'lib/prometheus_exporter.rb', line 12 def self.parse(obj) Oj.compat_load(obj) end |