mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
17 lines
312 B
Perl
17 lines
312 B
Perl
package Item;
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
sub new {
|
|
my ( $class, %attrs ) = @_;
|
|
return bless \%attrs, $class;
|
|
}
|
|
|
|
sub _data_printer { ## no critic (ProhibitUnusedPrivateSubroutines)
|
|
my ( $self, $properties ) = @_;
|
|
return $self->{name} . ', ' . $self->{sell_in} . ', ' . $self->{quality};
|
|
}
|
|
|
|
1;
|