Class: CCEngine::Issue
- Inherits:
-
Object
- Object
- CCEngine::Issue
- Defined in:
- lib/cc_engine/issue.rb
Instance Method Summary collapse
Instance Method Details
#render ⇒ Object
16 17 18 |
# File 'lib/cc_engine/issue.rb', line 16 def render to_hash.to_json + "\0" end |
#to_hash ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/cc_engine/issue.rb', line 24 def to_hash { type: "issue", check_name: check_name, description: description, categories: categories, location: location.to_hash }.merge(remediation_points_hash).merge(content_hash).merge(fingerprint_hash) end |
#to_json ⇒ Object
20 21 22 |
# File 'lib/cc_engine/issue.rb', line 20 def to_json to_hash.to_json end |