1 class VoteResultStruct < ActionWebService::Struct
2 member :plurality_winners, :string
3 member :approval_winners, :string
4 member :condorcet_winners, :string
5 member :ssd_winners, :string
6 member :borda_winners, :string
7 member :errors, :string
9 class SelectricityAPI < ActionWebService::API::Base
10 api_method :cast_quickvote, :expects => [:int, :int, [[:int]]], :returns => [:string]
11 api_method :get_quickvote_results, :expects => [:string], :returns => [VoteResultStruct]