From 386d9904adc50fcc6f7c5fd1eff789a08fdeab8e Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 18 Jan 2022 10:21:09 -0500 Subject: [PATCH] put_monthly_overage_limit --- .rubocop.yml | 2 ++ lib/customer_repo.rb | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 53c881f..736857e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,6 +3,8 @@ AllCops: NewCops: enable Metrics/ClassLength: + CountAsOne: + - heredoc Exclude: - test/* diff --git a/lib/customer_repo.rb b/lib/customer_repo.rb index 4358b67..573493c 100644 --- a/lib/customer_repo.rb +++ b/lib/customer_repo.rb @@ -74,6 +74,11 @@ class CustomerRepo @sgx_repo.put_fwd(customer.customer_id, tel, customer_fwd) end + def put_monthly_overage_limit(customer, limit) + k = "jmp_customer_monthly_overage_limit-#{customer.customer_id}" + @redis.put(k, limit) + end + protected def new_sgx(customer_id) -- 2.38.5