opennorth/govkit-ca

View on GitHub
lib/gov_kit-ca/postal_code/strategy/parl_gc_ca.rb

Summary

Maintainability
A
0 mins
Test Coverage
module GovKit
  module CA
    module PostalCode
      module Strategy
        class ParlGcCa < Base
          base_uri 'www.parl.gc.ca'
          http_method :get
          path '/ParlInfo/Compilations/HouseOfCommons/MemberByPostalCode.aspx?PostalCode=<%= @postal_code %>'

        private

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