for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# Clase para gestionar las profesiones y sus grados.
# TODO necesita refactor segun la nueva forma de organizar los datos
class Profesion < Hash
attr_accessor :id, :name, :aprendiz, :artesano, :maestro
def initialize(args)
args.each do |k, v|
instance_variable_set("@#{k}".to_sym, v) unless v.nil?
end
def img_path
"'../../images/profesiones/#{name}.png'"
def aprendizajes
profesion(id)['aprendiz']
def artesanias
profesion(id)['artesano']
def maestrias
profesion(id)['maestro']
def imped
prof_impeds.keys[id]
def why
prof_impeds[imped]