scenarios/callback_create/ruby.mako in balanced-1.0.beta1 vs scenarios/callback_create/ruby.mako in balanced-1.0
- old
+ new
@@ -1,19 +1,20 @@
% if mode == 'definition':
Balanced::Callback.new
% elif mode == 'request':
require 'balanced'
-Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
+Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
callback = Balanced::Callback.new(
+ :method => 'post',
:url => 'http://www.example.com/callback'
).save
% elif mode == 'response':
-#<Balanced::Callback:0x007fdc9c1dbb38
+#<Balanced::Callback:0x007ff2bd972b08
@attributes=
- {"href"=>"/callbacks/CB224374R2NSyoYBpDV4r7C2",
- "id"=>"CB224374R2NSyoYBpDV4r7C2",
+ {"href"=>"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R",
+ "id"=>"CB5pnz4XnaDpRFGlNMb6u50R",
"links"=>{},
"method"=>"post",
"revision"=>"1.1",
"url"=>"http://www.example.com/callback"},
@hyperlinks={}>