% if mode == 'definition': Balanced::Order.all % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-YoVGJWMjOpkCPo6dWMfuiYbBYIB8q2JX') orders = Balanced::Order.all % elif mode == 'response': [#10000, "amount_escrowed"=>4000, "created_at"=>"2014-12-17T21:24:07.380654Z", "currency"=>"USD", "delivery_address"=> {"city"=>nil, "country_code"=>nil, "line1"=>nil, "line2"=>nil, "postal_code"=>nil, "state"=>nil}, "description"=>"Order #12341234", "href"=>"/orders/OR6c6n11zKSFfjE6kGNKtsE8", "id"=>"OR6c6n11zKSFfjE6kGNKtsE8", "links"=>{"merchant"=>"CU68iUpvvUwpRpuuBL3u9Slq"}, "meta"=>{}, "updated_at"=>"2014-12-17T21:24:07.380656Z"}, @hyperlinks= {"buyers"=> #, "credits"=> #, "debits"=> #, "events"=> #, "merchant"=> #, "refunds"=> #, "reversals"=> #}>, #0, "amount_escrowed"=>0, "created_at"=>"2014-12-17T21:25:55.028602Z", "currency"=>"USD", "delivery_address"=> {"city"=>nil, "country_code"=>nil, "line1"=>nil, "line2"=>nil, "postal_code"=>nil, "state"=>nil}, "description"=>"Order #12341234", "href"=>"/orders/ORm6xuCp6tf0DZMp7ESoOj3", "id"=>"ORm6xuCp6tf0DZMp7ESoOj3", "links"=>{"merchant"=>"CU7yoUz1HuDE7t7p9GcVNYbz"}, "meta"=>{}, "updated_at"=>"2014-12-17T21:25:55.028603Z"}, @hyperlinks= {"buyers"=> #, "credits"=> #, "debits"=> #, "events"=> #, "merchant"=> #, "refunds"=> #, "reversals"=> #}>] % endif