Sha256: b157b541d848bc3c1013c04ab0f216ed5a299eead491ce29215d7bfb87e2330d

Contents?: true

Size: 658 Bytes

Versions: 2

Compression:

Stored size: 658 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'
          http_method :get
          path '/?section_id=1051&postal_code=<%= @postal_code %>'

        private

          def electoral_districts!
            # TODO returns HTML with electoral district names only
          end

          def valid?
            # TODO
          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.4 lib/gov_kit-ca/postal_code/strategy/conservative_ca.rb
govkit-ca-0.0.3 lib/gov_kit-ca/postal_code/strategy/conservative_ca.rb