Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def errortraductor(atributo)
- #usar el objeto para identificar la clase y asi hacer un if clase
- #mirar si es posible meter aca una clases para poder asi usar multiples funciones con esto
- x = atributo.split
- b = x[0]
- case b
- when "Strnombres"
- "nombres" + "=>" + atributo[b[0].size,100]
- when "Strapellidos"
- "apellidos" + "=>" + atributo[b[0].size,100]
- when "Strid"
- "ID" + "=>" + atributo[b.size,100]
- when "Stremail"
- "e-mail" + "=>" + atributo[b.size,100]
- when "Inttipo"
- "tipo" + "=>" + atributo[b[0].size,100]
- when "Strdireccion"
- "dirección" + "=>" + atributo[b[0].size,100]
- when "Strtelefono"
- "teléfono" + "=>" + atributo[b[0].size,100]
- when "Strlogin"
- "usuario" + "=>" + atributo[b.size,100]
- when "Strclave"
- "clave" + "=>" + atributo[b[0].size,100]
- end
- end
Add Comment
Please, Sign In to add comment