NAME
JMAP::Tester::Response::Sentence::Set - the kind of sentence you get in reply to a setFoos call
VERSION
version 0.020
OVERVIEW
A "Set" sentence is a kind of Sentence for representing foosSet
results. It has convenience methods for getting out the data returned in these kinds of sentences.
METHODS
new_state
This returns the newState
in the result.
old_state
This returns the newState
in the result.
created
This returns the hashref of data in the created
property.
created_id
my $id = $set->created_id( $cr_id );
This returns the id given to the object created for the given creation id. If that creation id doesn't correspond to a created object, undef
is returned.
created_creation_ids
This returns the list of creation ids that were successfully created. Note: this returns creation ids, not object ids.
created_ids
This returns the list of object ids that were successfully created.
not_created_ids
This returns the list of creation ids that were not successfully created.
create_errors
This returns a hashref mapping creation ids to error properties.
updated_ids
This returns a list of object ids that were successfully updated.
not_updated_ids
This returns a list of object ids that were not successfully updated.
update_errors
This returns a hashref mapping object ids to error properties.
destroyed_ids
This returns a list of object ids that were successfully destroyed.
not_destroyed_ids
This returns a list of object ids that were not successfully destroyed.
destroy_errors
This returns a hashref mapping object ids to error properties.
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by FastMail, Ltd.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.