github
33 of 309 new or added lines in 22 files covered. (10.68%)
27 existing lines in 7 files now uncovered.10384 of 21100 relevant lines covered (49.21%)
278.38 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
NEW
|
module NotificationEvent |
× |
NEW
|
class EntityLocked < Base |
× |
NEW
|
parameter :entity, required: true |
× |
NEW
|
parameter :stat, required: true |
× |
7 |
|
|
NEW
|
private |
× |
9 |
|
|
NEW
|
def event_name |
× |
NEW
|
"#{entity.class}Locked"
|
× |
NEW
|
end
|
× |
13 |
|
|
NEW
|
def subject |
× |
NEW
|
"#{entity.class} with id #{entity.id} locked by quality"
|
× |
NEW
|
end
|
× |
17 |
|
|
NEW
|
def message |
× |
NEW
|
"ACD Limit: #{entity.acd_limit}, ACD actual value: #{stat.acd}\n
|
× |
NEW
|
ASR Limit: #{entity.asr_limit}, ASR actual value: #{stat.asr}" |
× |
NEW
|
end
|
× |
NEW
|
end
|
× |
NEW
|
end
|
× |