From cafd02f831d644893d857aed231ccaccd83811bd Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 1 Jul 2025 10:50:24 -0500 Subject: [PATCH] Remove unused method And move price method where it actually goes --- lib/registration.rb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/registration.rb b/lib/registration.rb index abef0d50b40467f3c68abd6f29da578ed25b2edf..368273481520a4e5485118491f8fa292b2ea8dde 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -386,10 +386,6 @@ class Registration end end - def self.bill? - true - end - # @return [Float] The price of the number + activation fee # @param [TelSelection::ChooseTel::Tn] tel The phone number to charge def self.price(tel) @@ -406,15 +402,11 @@ class Registration yield @customer end - def self.bill? - false + def self.price(tel) + tel.price end end - def self.price(tel) - tel.price - end - class CreditCard Payment.kinds[:credit_card] = ->(*args, **kw) { self.for(*args, **kw) }