% if mode == 'definition': Balanced::BankAccount.debit % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA17zYxBNrmg9isvicjz9Ae4') bank_account.debit( :amount => 5000, :appears_on_statement_as => 'Statement text', :description => 'Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': #5000, "appears_on_statement_as"=>"BAL*Statement text", "created_at"=>"2014-11-14T19:28:20.531858Z", "currency"=>"USD", "description"=>"Some descriptive text for the debit in the dashboard", "failure_reason"=>nil, "failure_reason_code"=>nil, "href"=>"/debits/WD2rNbc5IxoDIyiumypsUMtv", "id"=>"WD2rNbc5IxoDIyiumypsUMtv", "links"=> {"card_hold"=>nil, "customer"=>nil, "dispute"=>nil, "order"=>nil, "source"=>"BA17zYxBNrmg9isvicjz9Ae4"}, "meta"=>{}, "status"=>"pending", "transaction_number"=>"WSVJ-8FD-G2UK", "updated_at"=>"2014-11-14T19:28:20.985200Z"}, @hyperlinks= {"card_hold"=> #, "customer"=> #, "dispute"=> #, "events"=> #, "order"=> #, "refunds"=> #, "source"=> #}> % endif