examples/customers.rb in balanced-0.7.4 vs examples/customers.rb in balanced-0.7.5

- old
+ new

@@ -1,9 +1,8 @@ cwd = File.dirname(File.dirname(File.absolute_path(__FILE__))) $:.unshift(cwd + "/lib") require 'balanced' -require 'ruby-debug' begin Balanced::Card rescue NameError @@ -44,11 +43,11 @@ :ssn_last4 => "1234", :address => { :line1 => "1234 1st Street", :city => "San Francisco", :state => "CA" - } + } ).save puts "our customer uri is #{customer.uri}" puts "create a card and a bank account for our customer" @@ -107,9 +106,5 @@ raise "active card is incorrect" unless customer.active_card.id == card.id puts "check to see what is the active bank_account for a customer" raise "active bank account is incorrect" unless customer.active_bank_account.id == bank_account.id - - - -