% if mode == 'definition': Balanced::Customer.fetch % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-YoVGJWMjOpkCPo6dWMfuiYbBYIB8q2JX') customer = Balanced::Customer.fetch('/customers/CU7s0pNLu0DEtFKtoljSeCAB') % elif mode == 'response': # {"city"=>nil, "country_code"=>nil, "line1"=>nil, "line2"=>nil, "postal_code"=>"48120", "state"=>nil}, "business_name"=>nil, "created_at"=>"2014-12-17T21:25:16.650481Z", "dob_month"=>7, "dob_year"=>1963, "ein"=>nil, "email"=>nil, "href"=>"/customers/CU7s0pNLu0DEtFKtoljSeCAB", "id"=>"CU7s0pNLu0DEtFKtoljSeCAB", "links"=>{"destination"=>nil, "source"=>nil}, "merchant_status"=>"underwritten", "meta"=>{}, "name"=>"Henry Ford", "phone"=>nil, "ssn_last4"=>nil, "updated_at"=>"2014-12-17T21:25:16.874084Z"}, @hyperlinks= {"accounts"=> #, "bank_accounts"=> #, "card_holds"=> #, "cards"=> #, "credits"=> #, "debits"=> #, "destination"=> #, "disputes"=> #, "external_accounts"=> #, "orders"=> #, "refunds"=> #, "reversals"=> #, "source"=> #, "transactions"=> #}> % endif