| 1 | package App::SD::CLI::Command::Ticket::Attachment::Search; | ||
| 2 | use Any::Moose; | ||
| 3 | extends 'Prophet::CLI::Command::Search'; | ||
| 4 | with 'Prophet::CLI::RecordCommand'; | ||
| 5 | with 'App::SD::CLI::Model::Attachment'; | ||
| 6 | |||
| 7 | sub type {'attachment'} | ||
| 8 | |||
| 9 | sub get_search_callback { | ||
| 10 | my $self = shift; | ||
| 11 | return sub { | ||
| 12 | shift->prop('ticket') eq $self->uuid ? 1 : 0; | ||
| 13 | } | ||
| 14 | } | ||
| 15 | |||
| 16 | __PACKAGE__->meta->make_immutable; | ||
| 17 | no Any::Moose; | ||
| 18 | |||
| 19 | 1; | ||
| 20 |