Module: Legion::Extensions::Detect::Formatters::Json

Defined in:
lib/legion/extensions/detect/formatters/json.rb

Class Method Summary collapse

Class Method Details

.format(detections) ⇒ Object



12
13
14
# File 'lib/legion/extensions/detect/formatters/json.rb', line 12

def format(detections)
  detections
end

.to_json(detections) ⇒ Object



16
17
18
# File 'lib/legion/extensions/detect/formatters/json.rb', line 16

def to_json(detections)
  ::JSON.pretty_generate(format(detections))
end