def METHOD_NAME(self):
    resource = self.get_by_name(self.data['name'])
    if self.state == 'present':
        return self.__present(resource)
    elif self.state == 'absent':
        return self.resource_absent(resource)