github
210 of 549 new or added lines in 40 files covered. (38.25%)
1 existing line in 1 file now uncovered.10433 of 20893 relevant lines covered (49.94%)
52.46 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
NEW
|
module NotificationEvent |
× |
NEW
|
class AccountHighThresholdCleared < Base |
× |
NEW
|
parameter :account, required: true |
× |
NEW
|
parameter :data, required: true |
× |
7 |
|
|
NEW
|
private |
× |
9 |
|
|
NEW
|
def event_name |
× |
NEW
|
'AccountHighThesholdCleader'
|
× |
NEW
|
end
|
× |
13 |
|
|
NEW
|
def subject |
× |
NEW
|
"#{account.class} with id #{account.id} high balance cleared"
|
× |
NEW
|
end
|
× |
17 |
|
|
NEW
|
def message |
× |
NEW
|
data.to_s |
× |
NEW
|
end
|
× |
21 |
|
|
NEW
|
def additional_contacts |
× |
NEW
|
account.balance_notification_setting.contacts.preload(:smtp_connection)
|
× |
NEW
|
end
|
× |
NEW
|
end
|
× |
NEW
|
end
|
× |