M .rubocop.yml => .rubocop.yml +2 -0
@@ 3,6 3,8 @@ AllCops:
NewCops: enable
Metrics/ClassLength:
+ CountAsOne:
+ - heredoc
Exclude:
- test/*
M lib/customer_repo.rb => lib/customer_repo.rb +5 -0
@@ 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)