natdeanlewissoftwire
11 months ago
2 changed files with 14 additions and 1 deletions
@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true |
||||
|
||||
module UprnAddressSpikeHelper |
||||
def match_colour(match) |
||||
if match >= 0.8 |
||||
"green" |
||||
elsif match >= 0.7 |
||||
"orange" |
||||
else |
||||
"red" |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue