| 1 | package DDG::IsControllable; | ||||||||||
| 2 | 12 | our $AUTHORITY = 'cpan:DDG'; | |||||||||
| 3 | # ABSTRACT: Role for data managed inside the DuckDuckGo infrastructure | ||||||||||
| 4 | 12 | $DDG::IsControllable::VERSION = '1016'; | |||||||||
| 5 | 12 | ▶ | use Moo::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | |||||||||||
| 8 | has is_cached => ( | ||||||||||
| 9 | is => 'ro', | ||||||||||
| 10 | 53 | ▶ | default => sub { shift->isa('DDG::ZeroClickInfo::Spice') ? 1 : 0 }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||
| 11 | 12 | ); | |||||||||
| 12 | |||||||||||
| 13 | |||||||||||
| 14 | has is_unsafe => ( | ||||||||||
| 15 | is => 'ro', | ||||||||||
| 16 | 90 | ▶ | default => sub { 0 }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 12 | ); | |||||||||
| 18 | |||||||||||
| 19 | |||||||||||
| 20 | 12 | has ttl => ( | |||||||||
| 21 | is => 'ro', | ||||||||||
| 22 | predicate => 'has_ttl', | ||||||||||
| 23 | ); | ||||||||||
| 24 | |||||||||||
| 25 | |||||||||||
| 26 | 12 | has caller => ( | |||||||||
| 27 | is => 'ro', | ||||||||||
| 28 | predicate => 'has_caller', | ||||||||||
| 29 | ); | ||||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | 12 | 1; | |||||||||
| 33 | |||||||||||
| 34 | __END__ | ||||||||||