end
class VoteInfo < ActionWebService::Struct
member :voter_id, :int
+ member :voter_session_id, :string
member :voter_ipaddress, :string
member :vote_time, :int
member :vote, [:int]
return result
end
qv.votes.each do |vote|
- votes << VoteInfo.new(:voter_id => vote.voter.id, :voter_ipaddress => vote.voter.ipaddress, :vote_time => vote.time.to_i, :vote => vote.votes)
+ votes << VoteInfo.new(:voter_id => vote.voter.id, :voter_ipaddress => vote.voter.ipaddress, :vote_time => vote.time.to_i, :vote => vote.votes, :voter_session_id => vote.voter.session_id )
end
return votes
end