% if mode == 'definition': Balanced::Customer.all % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') 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-01-27T22:57:27.459187Z", "dob_month"=>7, "dob_year"=>1963, "ein"=>nil, "email"=>nil, "href"=>"/customers/CU33Y4cut21qu1d1lGYDBseQ", "id"=>"CU33Y4cut21qu1d1lGYDBseQ", "links"=>{"destination"=>nil, "source"=>nil}, "merchant_status"=>"underwritten", "meta"=>{}, "name"=>"Henry Ford", "phone"=>nil, "ssn_last4"=>nil, "updated_at"=>"2014-01-27T22:57:29.488272Z"}, @hyperlinks= {"bank_accounts"=> #, "card_holds"=> #, "cards"=> #, "credits"=> #, "debits"=> #, "destination"=> #, "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-01-27T22:57:12.447565Z", "dob_month"=>7, "dob_year"=>1963, "ein"=>nil, "email"=>nil, "href"=>"/customers/CU2N5goX8AQJE0CCPeapHUsM", "id"=>"CU2N5goX8AQJE0CCPeapHUsM", "links"=>{"destination"=>nil, "source"=>nil}, "merchant_status"=>"underwritten", "meta"=>{}, "name"=>"Henry Ford", "phone"=>nil, "ssn_last4"=>nil, "updated_at"=>"2014-01-27T22:57:13.581358Z"}, @hyperlinks= {"bank_accounts"=> #, "card_holds"=> #, "cards"=> #, "credits"=> #, "debits"=> #, "destination"=> #, "orders"=> #, "refunds"=> #, "reversals"=> #, "source"=> #, "transactions"=> #}>] % endif