lib/service/payment_persistence.rb in paytureman-0.2.0 vs lib/service/payment_persistence.rb in paytureman-0.3.0

- old
+ new

@@ -1,14 +1,14 @@ module Paytureman class PaymentPersistence - + include Singleton - + def load(memento) memento.type.constantize.new_from_memento(memento) end - + def save(payment, memento) payment.save_to_memento(memento) memento.type = payment.class.name end \ No newline at end of file