| 1 | package Test2::Event::Encoding; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | our $VERSION = '1.302073'; | ||
| 6 | |||
| 7 | BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) } | ||
| 8 | use Test2::Util::HashBase qw/encoding/; | ||
| 9 | |||
| 10 | sub init { | ||
| 11 | my $self = shift; | ||
| 12 | defined $self->{+ENCODING} or $self->trace->throw("'encoding' is a required attribute"); | ||
| 13 | } | ||
| 14 | |||
| 15 | sub summary { 'Encoding set to ' . $_[0]->{+ENCODING} } | ||
| 16 | |||
| 17 | 1; | ||
| 18 | |||
| 19 | __END__ |