Shopify/Model/Blog.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 13 Podpod 0.0% 0 / 9 totaltotal 0.0% 0 / 49 CC 1 SCAR 6.9
CC
1
Cov
0%
fields
2.0
BEGIN
2.0
creation_minimal
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3  
4 use WWW::Shopify;
5  
6 package WWW::Shopify::Model::Blog;
7 use parent 'WWW::Shopify::Model::Item';
8  
9 my $fields; sub fields { return $fields; }
10 BEGIN { $fields = {
11 "title" => new WWW::Shopify::Field::String::Words(1, 3),
12 "handle" => new WWW::Shopify::Field::String::Handle(),
13 "commentable" => new WWW::Shopify::Field::String("(no|yes)"),
14 "tags" => new WWW::Shopify::Field::Text(),
15 "metafields" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::Metafield"),
16 "id" => new WWW::Shopify::Field::Identifier(),
17 "created_at" => new WWW::Shopify::Field::Date(),
18 "updated_at" => new WWW::Shopify::Field::Date(),
19 "feedburner" => new WWW::Shopify::Field::String(),
20 "feedburner_location" => new WWW::Shopify::Field::String(),
21 "template_suffix" => new WWW::Shopify::Field::String(),
22 "articles" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::Article"),
23 }; }
24  
25 sub creation_minimal { return qw(title); }
26 sub creation_filled { return qw(id created_at); }
27 sub update_filled { return qw(updated_at); }
28 sub update_fields { return qw(title handle commentable tags metafields feedburner beedburner_location template_suffix); }
29  
30 sub read_scope { return "read_content"; }
31 sub write_scope { return "write_content"; }
32  
33 sub has_metafields { return 1; }
34  
35 eval(__PACKAGE__->generate_accessors); die $@ if $@;
36  
37 1