Adding methods dynamically into Pluct::Resource object