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