% if mode == 'definition': Balanced::Customer.all % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') customers = Balanced::Customer.all % elif mode == 'response': [# {"city"=>nil, "country_code"=>nil, "line1"=>nil, "line2"=>nil, "postal_code"=>"48120", "state"=>nil}, "business_name"=>nil, "created_at"=>"2014-03-06T19:23:15.982885Z", "dob_month"=>7, "dob_year"=>1963, "ein"=>nil, "email"=>nil, "href"=>"/customers/CU5YopHN07Ul5XQnILUifeQT", "id"=>"CU5YopHN07Ul5XQnILUifeQT", "links"=>{"destination"=>nil, "source"=>nil}, "merchant_status"=>"underwritten", "meta"=>{}, "name"=>"Henry Ford", "phone"=>nil, "ssn_last4"=>nil, "updated_at"=>"2014-03-06T19:23:16.724050Z"}, @hyperlinks= {"bank_accounts"=> #, "card_holds"=> #, "cards"=> #, "credits"=> #, "debits"=> #, "destination"=> #, "external_accounts"=> #, "orders"=> #, "refunds"=> #, "reversals"=> #, "source"=> #, "transactions"=> #}>, # {"city"=>nil, "country_code"=>nil, "line1"=>nil, "line2"=>nil, "postal_code"=>"48120", "state"=>nil}, "business_name"=>nil, "created_at"=>"2014-03-06T19:23:04.895882Z", "dob_month"=>7, "dob_year"=>1963, "ein"=>nil, "email"=>nil, "href"=>"/customers/CU5LVuaZG7gURfbA7TuMNoZa", "id"=>"CU5LVuaZG7gURfbA7TuMNoZa", "links"=>{"destination"=>nil, "source"=>nil}, "merchant_status"=>"underwritten", "meta"=>{}, "name"=>"Henry Ford", "phone"=>nil, "ssn_last4"=>nil, "updated_at"=>"2014-03-06T19:23:05.747337Z"}, @hyperlinks= {"bank_accounts"=> #, "card_holds"=> #, "cards"=> #, "credits"=> #, "debits"=> #, "destination"=> #, "external_accounts"=> #, "orders"=> #, "refunds"=> #, "reversals"=> #, "source"=> #, "transactions"=> #}>] % endif