Sha256: 733c600f08089e23cb60ba2960bd79ae65a499809f8836cb87ff6fd1b464ee62
Contents?: true
Size: 597 Bytes
Versions: 1
Compression:
Stored size: 597 Bytes
Contents
module GovKit module CA module PostalCode module Strategy class GreenPartyCa < Base base_uri 'www.greenparty.ca' http_method :post path '/en/party/find-your-riding' post_data 'form_id=gpc_glue_riding_lookup_form&postal_code=<%= @postal_code %>' private def electoral_districts! [response.headers['location'][/\d+\z/]] end def valid? response.headers['location'] != 'http://www.greenparty.ca/en/party/find-your-riding' end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
govkit-ca-0.0.12 | lib/gov_kit-ca/postal_code/strategy/greenparty_ca.rb |