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