# File lib/jp_address.rb, line 21
  def self.[](code)
    case code.length
      when 3 then find_by_zipcode_old(code)
      when 5 then find_by_zipcode_old(code)
      when 7 then find_by_zipcode(code)
    end
  rescue
    nil
  end