https://stackoverflow.com/questions/17522706/how-to-pass-a-class-variable-to-a-decorator-inside-class-definition