Shopify/Model/LinkList.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 16 Podpod 0.0% 0 / 12 totaltotal 0.0% 0 / 58 CC 1 SCAR 6.9
CC
1
Cov
0%
fields
2.0
BEGIN
2.0
singular
2.0
CRAP 2.0
1 #!/usr/bin/perl
2  
3 use strict;
4 use warnings;
5  
6 use WWW::Shopify;
7  
8 package WWW::Shopify::Model::LinkList;
9 use parent "WWW::Shopify::Model::Item";
10  
11 my $fields; sub fields { return $fields; }
12 BEGIN { $fields = {
13 "handle" => new WWW::Shopify::Field::String::Handle(),
14 "title" => new WWW::Shopify::Field::String(),
15 "id" => new WWW::Shopify::Field::Identifier(),
16 # "default" => new WWW::Shopify::Field::Boolean(),
17 "links" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::LinkList::Link")
18 }; }
19  
20 sub singular { return "link_list"; }
21 sub countable { return undef; }
22  
23 sub creation_minimal { return qw(handle); }
24 sub creation_filled { return qw(id); }
25 sub update_fields { return qw(handle title links); }
26 sub update_filled { return qw(); }
27  
28 sub needs_login { return 1; }
29 # Shopify recently just killed all their JSON apis for non-api stuff. Why? Who knows?
30 # They're just delaying the inevitable.
31 sub needs_form_encoding_create { return 1; }
32 sub needs_form_encoding_update { return 1; }
33 sub needs_form_encoding_delete { return 1; }
34  
35 eval(__PACKAGE__->generate_accessors); die $@ if $@;
36  
37 1;