class Opennorth::Represent::PostalCode

Public Instance Methods

representatives=(representative_set) click to toggle source
# File lib/opennorth/represent/models/postal_code.rb, line 12
def representatives=(representative_set)
  attributes[:representatives] ||= Opennorth::Represent::Representatives.new(service: service)

  self.representatives.clear
  self.representatives.load(representative_set)
end