lib/contactology/issue.rb in contactology-0.0.2 vs lib/contactology/issue.rb in contactology-0.1.0
- old
+ new
@@ -14,10 +14,10 @@
@type = details['type']
@text = details['text']
@message = details['message']
@context = details['context']
@col = details['col']
- @deduction = details['deduction']
+ @deduction = details['deduction'] || 0
end
def to_s
"%s: %s, %d point deduction" % [type, text || message, deduction]
end