aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice/test/abstract_client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionwebservice/test/abstract_client.rb')
-rw-r--r--actionwebservice/test/abstract_client.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/actionwebservice/test/abstract_client.rb b/actionwebservice/test/abstract_client.rb
index c5484b6b62..5207d8ef21 100644
--- a/actionwebservice/test/abstract_client.rb
+++ b/actionwebservice/test/abstract_client.rb
@@ -34,6 +34,10 @@ module ClientTest
member :user, User
member :users, [User]
end
+
+ class WithMultiDimArray < ActionWebService::Struct
+ member :pref, [[:string]]
+ end
class API < ActionWebService::API::Base
api_method :void
@@ -48,6 +52,7 @@ module ClientTest
api_method :user_return, :returns => [User]
api_method :with_model_return, :returns => [WithModel]
api_method :scoped_model_return, :returns => [Accounting::User]
+ api_method :multi_dim_return, :returns => [WithMultiDimArray]
end
class NullLogOut
@@ -124,6 +129,10 @@ module ClientTest
def scoped_model_return
Accounting::User.find(1)
end
+
+ def multi_dim_return
+ WithMultiDimArray.new :pref => [%w{pref1 value1}, %w{pref2 value2}]
+ end
end
class AbstractClientLet < WEBrick::HTTPServlet::AbstractServlet