diff --git a/.rubocop.yml b/.rubocop.yml index 53c881fd4adcc41b9775b5162ea5cccb4b7cc117..736857e827cbbed5e992fadd8f818880a8faaecd 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 4358b672d4584b985431632c92f9e49526daa257..573493c0b2703da095f0c0a4e967e8e7a5f0bcba 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)