class ApplyYear
  def self.validate(row)
    reasons = []

    unless row[:apply_year]
      reasons << 'Apply year is required'
    end

    if row[:apply_year].to_s.length != 4
      reasons << 'Apply year must be four digits'
    end

    reasons
  end
end

