% if mode == 'definition': Balanced::BankAccount.credit % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd') bank_account.credit(:amount => 5000) % elif mode == 'response': #5000, "appears_on_statement_as"=>"example.com", "created_at"=>"2014-04-25T20:18:52.480929Z", "currency"=>"USD", "description"=>nil, "failure_reason"=>nil, "failure_reason_code"=>nil, "href"=>"/credits/CR6nBcaGvGc4dtflEB1bjKBP", "id"=>"CR6nBcaGvGc4dtflEB1bjKBP", "links"=> {"customer"=>"CU3VYCUIfwngJsidJWdGw2W5", "destination"=>"BA3Y63fK5STwlhKNMkE3Utmd", "order"=>nil}, "meta"=>{}, "status"=>"succeeded", "transaction_number"=>"CR666-481-5204", "updated_at"=>"2014-04-25T20:18:54.380146Z"}, @hyperlinks= {"customer"=> #, "destination"=> #, "events"=> #, "order"=> #, "reversals"=> #}> % endif