I think there's enough magic here to warrant commenting.  What is "resource"?  Why is it used instead of self on get/set value?  It seems like this is related to a specific module or class that this module must be paired with, so maybe comment on the need for that module in the comments up top.