class GovKit::CA::PostalCode::Strategy::LiberalCa
Private Instance Methods
electoral_districts!()
click to toggle source
# File lib/gov_kit-ca/postal_code/strategy/liberal_ca.rb, line 13 def electoral_districts! [response.parsed_response[%r{https://action.liberal.ca/en/donate/riding/(\d{5})}, 1]] end
valid?()
click to toggle source
# File lib/gov_kit-ca/postal_code/strategy/liberal_ca.rb, line 17 def valid? !response.parsed_response["We couldn't find a riding for that postal code."] end