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 AccountHighThresholdReached < Base |
× |
NEW
|
parameter :account, required: true |
× |
NEW
|
parameter :data, required: true |
× |
7 |
|
|
NEW
|
private |
× |
9 |
|
|
NEW
|
def event_name |
× |
NEW
|
'AccountHighThesholdReached'
|
× |
NEW
|
end
|
× |
13 |
|
|
NEW
|
def subject |
× |
NEW
|
"#{account.class} with id #{account.id} high balance"
|
× |
NEW
|
end
|
× |
17 |
|
|
NEW
|
def message |
× |
NEW
|
data.to_s |
× |
NEW
|
end
|
× |
21 |
|
|
NEW
|
def additional_contacts |
× |
NEW
|
account.contacts_for_balance_notifications.preload(:smtp_connection)
|
× |
NEW
|
end
|
× |
NEW
|
end
|
× |
NEW
|
end
|
× |