class Pay::FakeProcessor::Charge
Attributes
pay_charge[R]
Public Class Methods
new(pay_charge)
click to toggle source
# File lib/pay/fake_processor/charge.rb, line 8 def initialize(pay_charge) @pay_charge = pay_charge end
Public Instance Methods
charge()
click to toggle source
# File lib/pay/fake_processor/charge.rb, line 12 def charge pay_charge end
refund!(amount_to_refund)
click to toggle source
# File lib/pay/fake_processor/charge.rb, line 16 def refund!(amount_to_refund) pay_charge.update(amount_refunded: amount_to_refund) end