put_monthly_overage_limit

Stephen Paul Weber created

Change summary

.rubocop.yml         | 2 ++
lib/customer_repo.rb | 5 +++++
2 files changed, 7 insertions(+)

Detailed changes

.rubocop.yml 🔗

@@ -3,6 +3,8 @@ AllCops:
   NewCops: enable
 
 Metrics/ClassLength:
+  CountAsOne:
+    - heredoc
   Exclude:
     - test/*
 

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)