Class: CCEngine::Issue

Inherits:
Object
  • Object
show all
Defined in:
lib/cc_engine/issue.rb

Instance Method Summary collapse

Instance Method Details

#renderObject



15
16
17
# File 'lib/cc_engine/issue.rb', line 15

def render
  to_hash.to_json + "\0"
end

#to_hashObject



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_jsonObject



19
20
21
# File 'lib/cc_engine/issue.rb', line 19

def to_json
  to_hash.to_json
end