Displaying 1 result from an estimated 1 matches for "productstatist".
2006 Jan 31
0
How to use nested arrays in ActionWebService?
...ribution and in this exapmmle this means
that the event "hit 1 time" occured two times and "hit 2 times"
occured 400 times.
When I try to implement this the following way I get an error ("nil
where it was not expected, maybe you wanted an array instead"):
class ProductStatistics < ActionWebService::Struct
member :name, :string
member :hit_distribution, [[:int]]
end
When I changed this to a flat integer array, it worked:
class ProductStatistics < ActionWebService::Struct
member :name, :string
member :hit_distribution, [:int]
end
Now, my question: I...