% if mode == 'definition': Balanced::Card.credit % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-25ZY8HQwZPuQtDecrxb671LilUya5t5G0') card = Balanced::Card.fetch('/cards/CC3iCCIHprJu5HPyP7vmE92B') card.credit( :amount => 5000, :description => 'Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': #5000, "appears_on_statement_as"=>"example.com", "created_at"=>"2014-11-14T19:29:19.110285Z", "currency"=>"USD", "description"=>"Some descriptive text for the debit in the dashboard", "failure_reason"=>nil, "failure_reason_code"=>nil, "href"=>"/credits/CR3vFNFFCyqipPjs5t4eaIVO", "id"=>"CR3vFNFFCyqipPjs5t4eaIVO", "links"=> {"customer"=>"CU2718cI8PkMdFyPjboZLZfn", "destination"=>"CC3iCCIHprJu5HPyP7vmE92B", "order"=>nil}, "meta"=>{}, "status"=>"succeeded", "transaction_number"=>"CR6R4-4OF-RNZ7", "updated_at"=>"2014-11-14T19:29:19.965523Z"}, @hyperlinks= {"customer"=> #, "destination"=> #, "events"=> #, "order"=> #, "reversals"=> #}> % endif