% if mode == 'definition': Balanced::Credit.fetch % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') credit = Balanced::Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC') % elif mode == 'response': #5000, "appears_on_statement_as"=>"example.com", "created_at"=>"2014-01-27T22:57:19.073817Z", "currency"=>"USD", "description"=>nil, "failure_reason"=>nil, "failure_reason_code"=>nil, "href"=>"/credits/CR2UtQgq6L3FPd1YoOc8eyOC", "id"=>"CR2UtQgq6L3FPd1YoOc8eyOC", "links"=> {"customer"=>"CU2N5goX8AQJE0CCPeapHUsM", "destination"=>"BA2QAksIxlLt60lqKc1wwgJy", "order"=>nil}, "meta"=>{}, "status"=>"succeeded", "transaction_number"=>"CR408-633-3169", "updated_at"=>"2014-01-27T22:57:20.208794Z"}, @hyperlinks= {"customer"=> #, "destination"=> #, "events"=> #, "order"=> #, "reversals"=> #}> % endif