lib/balanced/resources/customer.rb in balanced-1.0.beta1 vs lib/balanced/resources/customer.rb in balanced-1.0

- old
+ new

@@ -26,23 +26,9 @@ def self.owner owner_customer = Balanced::Marketplace.mine.owner_customer owner_customer end - def debit(options = {}) - if self.source.nil? - raise "No source available for #{self}" - end - self.source.debit(options) - end - - def credit(options = {}) - if self.destination.nil? - raise "No destination available for #{self}" - end - self.destination.credit(options) - end - def create_order(options = {}) options[:href] = self.orders.href order = Balanced::Order.new(options) order.save end