% if mode == 'definition': Balanced::Credit.fetch % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') credit = Balanced::Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx') % elif mode == 'response': #5000, "appears_on_statement_as"=>"example.com", "created_at"=>"2014-03-06T19:23:08.771807Z", "currency"=>"USD", "description"=>nil, "failure_reason"=>nil, "failure_reason_code"=>nil, "href"=>"/credits/CR5XXPwA1ckaTDSIg3593sEx", "id"=>"CR5XXPwA1ckaTDSIg3593sEx", "links"=> {"customer"=>"CU5LVuaZG7gURfbA7TuMNoZa", "destination"=>"BA5OqdmH8URGBYpilMITWsNW", "order"=>nil}, "meta"=>{}, "status"=>"succeeded", "transaction_number"=>"CR570-678-5174", "updated_at"=>"2014-03-06T19:23:09.525306Z"}, @hyperlinks= {"customer"=> #, "destination"=> #, "events"=> #, "order"=> #, "reversals"=> #}> % endif