Acme-FishFarm
view release on metacpan or search on metacpan
lib/Acme/FishFarm/WaterFiltration.pm view on Meta::CPAN
}
if ( $self->{is_on_spatulas} ) {
if ( $reduce_waste_by ) {
#reduce based on user input
if ( $self->{current_waste_count} > $reduce_waste_by ) {
$self->{current_waste_count} -= $reduce_waste_by;
} else {
# $reduce_waste_by not specified
$self->{current_waste_count} = 0;
}
} else {
$self->{current_waste_count} = 0;
}
} else {
return;
}
}
=head2 turn_on_spatulas
Activates the cleaning mechanism ie the spatulas :)
Take note that turning on the spatulas does not clean the cylinder. You need to do it explicitly. See C<clean_cylinder> method above for more info :)
=head2 turn_off_spatulas
Deactivates the cleaning mechanism ie the spatulas :)
=head2 is_on_spatulas
Returns C<1> if the spatula are turned on. The spatula will not clean the cylinder until you explicitly tell the system to do so. See C<clean_cylinder> method above for more info.
=cut
sub turn_on_spatulas {
ref( my $self = shift ) or croak "Please use this the OO way";
$self->{is_on_spatulas} = 1;
}
sub turn_off_spatulas {
ref( my $self = shift ) or croak "Please use this the OO way";
$self->{is_on_spatulas} = 0;
}
sub is_on_spatulas {
ref( my $self = shift ) or croak "Please use this the OO way";
$self->{is_on_spatulas};
}
=head1 AUTHOR
Raphael Jong Jun Jie, C<< <ellednera at cpan.org> >>
=head1 BUGS
Please report any bugs or feature requests to C<bug-. at rt.cpan.org>, or through
the web interface at L<https://rt.cpan.org/NoAuth/ReportBug.html?Queue=.>. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Acme::FishFarm::WaterFiltration
You can also look for information at:
=over 4
=item * RT: CPAN's request tracker (report bugs here)
L<https://rt.cpan.org/NoAuth/Bugs.html?Dist=.>
=item * CPAN Ratings
L<https://cpanratings.perl.org/d/.>
=item * Search CPAN
L<https://metacpan.org/release/.>
=back
=head1 ACKNOWLEDGEMENTS
Besiyata d'shmaya
=head1 LICENSE AND COPYRIGHT
This software is Copyright (c) 2021 by Raphael Jong Jun Jie.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
=cut
1; # End of Acme::FishFarm::WaterFiltration
( run in 1.237 second using v1.01-cache-2.11-cpan-ceb78f64989 )