Sha256: 37d15b00d7442cf9e746cc71d8555449be2266fa431698ef3f0abc99197f12ee
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
module GovKit module CA module PostalCode module Strategy # conservative.ca seems unreliable. In the case of B0J2L0, for example, # it does not return three ridings like other sources. class ConservativeCa < Base base_uri 'www.conservative.ca' private def electoral_districts! # TODO returns HTML with electoral district names only end def valid? # TODO end def response @response ||= self.class.get "/?section_id=1051&postal_code=#{@postal_code}" end end StrategySet.register ConservativeCa end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
govkit-ca-0.0.2 | lib/gov_kit-ca/postal_code/strategy/conservative-ca.rb |
govkit-ca-0.0.1 | lib/gov_kit-ca/postal_code/strategy/conservative-ca.rb |