~singpolyma/sgx-jmp

386d9904adc50fcc6f7c5fd1eff789a08fdeab8e — Stephen Paul Weber 1 year, 10 months ago 319b27a
put_monthly_overage_limit
2 files changed, 7 insertions(+), 0 deletions(-)

M .rubocop.yml
M lib/customer_repo.rb
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)