NAME
Elastic::Model::Deleted - A class to represent deleted doc objects which are still in scope
VERSION
version 0.29_2
DESCRIPTION
When an object in scope is deleted, it is reblessed into Elastic::Model::Deleted, which throws an error if any method other than those listed below are called.
For instance:
$user = $domain->get( user => 1 );
$user->delete;
print $user->name;
# throws error
ATTRIBUTES
uid
$uid = $deleted_doc->uid
The original UID of the deleted doc.
METHODS
has_been_deleted()
1 == $deleted->has_been_deleted()
Returns true without checking Elasticsearch. This method is provided so that it can be called in an "on_conflict" in Elastic::Model::Role::Doc handler.
Also see "has_been_deleted()" in Elastic::Model::Role::Doc.
AUTHOR
Clinton Gormley <drtech@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Clinton Gormley.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.