Method: Pipeline::Finding#to_json
- Defined in:
- lib/pipeline/finding.rb
#to_json ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/pipeline/finding.rb', line 39 def to_json json = { 'appname' => @appname, 'description' => @description, 'fingerprint' => @fingerprint, 'detail' => @detail, 'source' => @source, 'severity' => @severity, 'timestamp' => @timestamp }.to_json json end |