Advertisement
alejandrotecnimaq

Untitled

Aug 14th, 2020 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.58 KB | None | 0 0
  1.     if dato.gases__rpm_ralenti_inestable
  2.       comentario =
  3.         if norma_gases == 'NTC5365'
  4.           "[4.1.1.1.5] RPM ralentí fuera de rango"
  5.         else
  6.           "[3.1.1.1.10] RPM ralentí inestable"
  7.         end
  8.       resp << { contexto: "Análisis de gases", comentario: comentario }
  9.     end
  10.     if dato.gases__presencia_de_humo
  11.       codigo =
  12.         if norma_gases == 'NTC5365'
  13.           "4.1.1.1.7"
  14.         else
  15.           "3.1.1.1.9"
  16.         end
  17.       resp << { contexto: "Análisis de gases", comentario: "[#{codigo}] Presencia de humo negro o azul" }
  18.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement