do not include .git directory
[catagits/Reaction.git] / lib / Reaction / InterfaceModel / Action / DBIC / ResultSet / DeleteAll.pm
1 package Reaction::InterfaceModel::Action::DBIC::ResultSet::DeleteAll;
2
3 use Reaction::Types::DBIC 'ResultSet';
4 use Reaction::Class;
5 use Reaction::InterfaceModel::Action;
6
7 use namespace::clean -except => [ qw(meta) ];
8 extends 'Reaction::InterfaceModel::Action::DBIC::ResultSet';
9 with 'Reaction::InterfaceModel::Action::Role::SimpleMethodCall';
10
11 sub _target_model_method { 'delete_all' }
12
13 __PACKAGE__->meta->make_immutable;
14
15 1;
16
17 __END__;
18
19 =head1 NAME
20
21 Reaction::InterfaceModel::Action::DBIC::ResultSet::DeleteAll
22
23 =head1 DESCRIPTION
24
25 C<DeleteAll> is a subclass of
26 L<Action::DBIC::ResultSet|Reaction::InterfaceModel::Action::DBIC::ResultSet> using
27 L<Role::SimpleMethodCall|'Reaction::InterfaceModel::Action::Role::SimpleMethodCall>
28 to call the C<target_model>'s C<delete_all> method, deleting every item in the
29 resultset.
30
31 =head1 METHODS
32
33 =head2 _target_model_method
34
35 Returns 'delete_all'
36
37 =head1 SEE ALSO
38
39 L<Create|Reaction::InterfaceModel::Action::DBIC::ResultSet::Create>,
40 L<Update|Reaction::InterfaceModel::Action::DBIC::Result::Update>,
41 L<Delete|Reaction::InterfaceModel::Action::DBIC::Result::Delete>,
42
43 =head1 AUTHORS
44
45 See L<Reaction::Class> for authors.
46
47 =head1 LICENSE
48
49 See L<Reaction::Class> for the license.
50
51 =cut