rpi_detect_model: proper class with attributes