This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/lib/Pear/LocalLoop/Import/LCCCsv.pm

25 lines
483 B
Perl
Raw Normal View History

2019-07-02 14:21:01 +00:00
package Pear::LocalLoop::Import::LCCCsv;
use Moo;
use Pear::LocalLoop::Error;
has external_name => (
2021-03-20 12:09:50 +00:00
is => 'ro',
default => 'LCC CSV',
2019-07-02 14:21:01 +00:00
);
has csv_required_columns => (
2021-03-20 12:09:50 +00:00
is => 'lazy',
builder => sub {
Pear::LocalLoop::ImplementationError->throw(
"Must be implemented by child class");
},
2019-07-02 14:21:01 +00:00
);
2019-07-05 14:30:31 +00:00
with qw/
Pear::LocalLoop::Import::Role::ExternalName
Pear::LocalLoop::Import::Role::Schema
Pear::LocalLoop::Import::Role::CSV
2021-03-20 12:09:50 +00:00
/;
2019-07-05 14:30:31 +00:00
1;