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