% if mode == 'definition': Balanced::BankAccount.associate_to_customer % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-2q80HU8DISm2atgm0iRKRVIePzDb34qYp') bank_account = Balanced::BankAccount.fetch("/bank_accounts/BA2RqFlRIm0xqCNnHJNLYWMd") bank_account.associate_to_customer("/customers/CU2L981m9AtPY8pjpGpjnjnf") % elif mode == 'response': #"xxxxxx0001", "account_type"=>"checking", "address"=> {"city"=>nil, "country_code"=>nil, "line1"=>nil, "line2"=>nil, "postal_code"=>nil, "state"=>nil}, "bank_name"=>"BANK OF AMERICA, N.A.", "can_credit"=>true, "can_debit"=>false, "created_at"=>"2014-05-15T00:39:26.378338Z", "fingerprint"=> "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14", "href"=>"/bank_accounts/BA2RqFlRIm0xqCNnHJNLYWMd", "id"=>"BA2RqFlRIm0xqCNnHJNLYWMd", "links"=> {"bank_account_verification"=>nil, "customer"=>"CU2L981m9AtPY8pjpGpjnjnf"}, "meta"=>{}, "name"=>"Johann Bernoulli", "routing_number"=>"121000358", "updated_at"=>"2014-05-15T00:39:27.323054Z"}, @hyperlinks= {"bank_account_verification"=> #, "bank_account_verifications"=> #, "credits"=> #, "customer"=> #, "debits"=> #}> % endif