| 1 | package Antispam::Toolkit::Result; | ||
| 2 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | $Antispam::Toolkit::Result::VERSION = '0.08'; | |
| 4 | } | ||
| 5 | |||
| 6 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use Antispam::Toolkit::Types qw( Details NonNegativeNum ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 0 | ▶ | use overload 'bool' => sub { $_[0]->score() > 0 }; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.2
Subroutine
(bool: not called CC=1 SCAR=0.2
| |||
| 12 | |||
| 13 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use MooseX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 1 | has score => ( | |
| 17 | is => 'ro', | ||
| 18 | isa => NonNegativeNum, | ||
| 19 | required => 1, | ||
| 20 | ); | ||
| 21 | |||
| 22 | has _details => ( | ||
| 23 | traits => ['Array'], | ||
| 24 | is => 'bare', | ||
| 25 | isa => Details, | ||
| 26 | coerce => 1, | ||
| 27 | 0 | ▶ | default => sub { [] }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 28 | 1 | init_arg => 'details', | |
| 29 | handles => { | ||
| 30 | details => 'elements', | ||
| 31 | }, | ||
| 32 | ); | ||
| 33 | |||
| 34 | 1 | __PACKAGE__->meta()->make_immutable(); | |
| 35 | |||
| 36 | 1 | 1; | |
| 37 | |||
| 38 | # ABSTRACT: Represents the result of a spam check | ||
| 39 | |||
| 40 | |||
| 41 | __END__ | ||