lib/balanced/resources/debit.rb in balanced-0.3.11 vs lib/balanced/resources/debit.rb in balanced-0.5.1

- old
+ new

@@ -26,9 +26,11 @@ # amount of the Debit, you may create many Refunds up to the sum total # of the original Debit's amount. # # @return [Refund] def refund *args + warn_on_positional args + options = args.last.is_a?(Hash) ? args.pop : {} amount = args[0] || options.fetch(:amount) { nil } description = args[1] || options.fetch(:description) { nil } refund = Refund.new(