| 1 | # ABSTRACT: The payload for a Net::Object::Peer unsubscription event | ||||||||||
| 2 | |||||||||||
| 3 | package Net::Object::Peer::UnsubscribeEvent; | ||||||||||
| 4 | |||||||||||
| 5 | 20 | ▶ | use 5.10.0; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 20 | ▶ | use Types::Standard qw[ ArrayRef Str is_ArrayRef ]; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 20 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 20 | ▶ | use strictures 2; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 20 | ▶ | use namespace::clean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | 20 | our $VERSION = '0.06'; # TRIAL | |||||||||
| 14 | |||||||||||
| 15 | 20 | extends 'Net::Object::Peer::Event'; | |||||||||
| 16 | |||||||||||
| 17 | #pod =attr event_names | ||||||||||
| 18 | #pod | ||||||||||
| 19 | #pod =cut | ||||||||||
| 20 | |||||||||||
| 21 | has event_names => ( | ||||||||||
| 22 | is => 'ro', | ||||||||||
| 23 | isa => ArrayRef [Str], | ||||||||||
| 24 | default => '%all%', | ||||||||||
| 25 | 115 | ▶ | coerce => sub { is_ArrayRef( $_[0] ) ? $_[0] : [ $_[0] ] }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||
| 26 | 20 | ); | |||||||||
| 27 | |||||||||||
| 28 | 20 | 1; | |||||||||
| 29 | |||||||||||
| 30 | # | ||||||||||
| 31 | # This file is part of Net-Object-Peer | ||||||||||
| 32 | # | ||||||||||
| 33 | # This software is Copyright (c) 2016 by Smithsonian Astrophysical Observatory. | ||||||||||
| 34 | # | ||||||||||
| 35 | # This is free software, licensed under: | ||||||||||
| 36 | # | ||||||||||
| 37 | # The GNU General Public License, Version 3, June 2007 | ||||||||||
| 38 | # | ||||||||||
| 39 | |||||||||||
| 40 | =pod | ||||||||||
| 41 | |||||||||||
| 42 | =head1 NAME | ||||||||||
| 43 | |||||||||||
| 44 | Net::Object::Peer::UnsubscribeEvent - The payload for a Net::Object::Peer unsubscription event | ||||||||||
| 45 | |||||||||||
| 46 | =head1 VERSION | ||||||||||
| 47 | |||||||||||
| 48 | version 0.06 | ||||||||||
| 49 | |||||||||||
| 50 | =head1 DESCRIPTION | ||||||||||
| 51 | |||||||||||
| 52 | A B<Net::Object::Peer::UnsubscribeEvent> is sent to a subscriber of | ||||||||||
| 53 | a peer's C<unsubscribe> event. It is derived from L<Net::Object::Peer::Event>. | ||||||||||
| 54 | |||||||||||
| 55 | =head1 ATTRIBUTES | ||||||||||
| 56 | |||||||||||
| 57 | =head2 event_names | ||||||||||
| 58 | |||||||||||
| 59 | =head1 AUTHOR | ||||||||||
| 60 | |||||||||||
| 61 | Diab Jerius <djerius@cpan.org> | ||||||||||
| 62 | |||||||||||
| 63 | =head1 COPYRIGHT AND LICENSE | ||||||||||
| 64 | |||||||||||
| 65 | This software is Copyright (c) 2016 by Smithsonian Astrophysical Observatory. | ||||||||||
| 66 | |||||||||||
| 67 | This is free software, licensed under: | ||||||||||
| 68 | |||||||||||
| 69 | The GNU General Public License, Version 3, June 2007 | ||||||||||
| 70 | |||||||||||
| 71 | =cut | ||||||||||
| 72 | |||||||||||
| 73 | __END__ | ||||||||||