github
53 of 335 new or added lines in 26 files covered. (15.82%)
27 existing lines in 7 files now uncovered.10384 of 21100 relevant lines covered (49.21%)
278.39 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
NEW
|
module NotificationEvent |
× |
NEW
|
class AccountLowThresholdCleared < Base |
× |
NEW
|
parameter :account, required: true |
× |
NEW
|
parameter :data, required: true |
× |
7 |
|
|
NEW
|
private |
× |
9 |
|
|
NEW
|
def event_name |
× |
NEW
|
'AccountLowThesholdCleared'
|
× |
NEW
|
end
|
× |
13 |
|
|
NEW
|
def subject |
× |
NEW
|
"#{account.class} with id #{account.id} low balance cleared"
|
× |
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
|
× |