Shopify/Model/APIClient.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 11 Podpod 0.0% 0 / 7 totaltotal 0.0% 0 / 45 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::APIClient;
9 use parent 'WWW::Shopify::Model::Item';
10  
11 my $fields; sub fields { return $fields; }
12 BEGIN { $fields = {
13 "api_key" => new WWW::Shopify::Field::String::Hash(),
14 "api_permissions_count" => new WWW::Shopify::Field::Int(),
15 "api_url" => new WWW::Shopify::Field::String::URL(),
16 "created_at" => new WWW::Shopify::Field::Date(),
17 "embedded" => new WWW::Shopify::Field::Boolean(),
18 "id" => new WWW::Shopify::Field::Identifier(),
19 "kind" => new WWW::Shopify::Field::String::Enum(["public", "private"]),
20 "number" => new WWW::Shopify::Field::Int(),
21 "shared_secret" => new WWW::Shopify::Field::String::Hash(),
22 "support_url" => new WWW::Shopify::Field::String::URL(),
23 "title" => new WWW::Shopify::Field::String::Words(2),
24 "visible" => new WWW::Shopify::Field::Boolean(),
25 "application_developer" => new WWW::Shopify::Field::Relation::OwnOne("WWW::Shopify::Model::Shop")
26 }; }
27  
28 sub singular { return "api_client"; }
29 sub needs_login { return 1; }
30 sub updatable { return undef; }
31 sub countable { return undef; }
32  
33  
34 sub creation_filled { return qw(id created_at); }
35  
36 eval(__PACKAGE__->generate_accessors); die $@ if $@;
37  
38 1;