lib/gov_kit-ca/represent.rb in govkit-ca-0.0.14 vs lib/gov_kit-ca/represent.rb in govkit-ca-0.0.15

- old
+ new

@@ -104,11 +104,11 @@ end # Get candidates. # # @param [Hash] opts optional arguments - # @option opts [String] :electon an election + # @option opts [String] :election an election # @option opts [Array<Float>,String] :point a comma-separated latitude and longitude # @option opts [Array<Strong>,String] :districts a comma-separated list of boundaries # @option opts [Integer] :limit # @option opts [Integer] :offset # @see https://represent.opennorth.ca/api/#candidate @@ -117,10 +117,10 @@ opts[:point] = opts[:point].join(',') end if Array === opts[:districts] opts[:districts] = opts[:districts].join(',') end - request(['candidates', opts.delete(:candidate)], opts) + request(['candidates', opts.delete(:election)], opts) end private def request(parts, opts)