lib/balanced/resources/debit.rb in balanced-1.0.1 vs lib/balanced/resources/debit.rb in balanced-1.0.2
- old
+ new
@@ -22,17 +22,12 @@
# of the original Debit's amount.
#
# @return [Refund]
def refund(options={})
- amount = options[:amount]
- description = options[:description]
+ options[:href] = self.refunds.href
- refund = Refund.new(
- :href => self.refunds.href,
- :amount => amount,
- :description => description
- )
+ refund = Refund.new(options)
refund.save
end
end
end