Class: CCEngine::Issue

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

Instance Method Summary collapse

Instance Method Details

#to_hashObject



18
19
20
21
22
23
24
25
26
# File 'lib/cc_engine/issue.rb', line 18

def to_hash
  {
    type: "issue",
    check_name: check_name,
    description: description,
    categories: categories,
    location: location.to_hash
  }.merge(remediation_points_hash)
end

#to_jsonObject



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

def to_json
  to_hash.to_json
end