Changing new_resource.instance_variable_set to be new_resource.version