| 1 | #!/usr/bin/perl | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | 1 | ▶ | use WWW::Shopify; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | package WWW::Shopify::Model::Page; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | 1 | ▶ | use parent 'WWW::Shopify::Model::Item'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | 39 | ▶ | my $fields; sub fields { return $fields; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
fields: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | 1 | ▶ | BEGIN { $fields = { | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | "author" => new WWW::Shopify::Field::String::Name(), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | "body_html" => new WWW::Shopify::Field::Text::HTML(), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | "summary_html" => new WWW::Shopify::Field::Text::HTML(), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | "template_suffix" => new WWW::Shopify::Field::String(), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | "title" => new WWW::Shopify::Field::String::Words(1, 3), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | "handle" => new WWW::Shopify::Field::String::Handle(), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | "metafields" => new WWW::Shopify::Field::Relation::Many("WWW::Shopify::Model::Metafield"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | "id" => new WWW::Shopify::Field::Identifier(), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | "shop_id" => new WWW::Shopify::Field::Relation::ReferenceOne("WWW::Shopify::Model::Shop"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | "created_at" => new WWW::Shopify::Field::Date(), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | "updated_at" => new WWW::Shopify::Field::Date(), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | "published_at" => new WWW::Shopify::Field::Date(), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | }; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | 0 | ▶ | sub creation_minimal { return qw(title body_html); } | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
creation_minimal: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | 0 | ▶ | sub creation_filled { return qw(id created_at published_at); } | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
creation_filled: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | 0 | ▶ | sub update_filled { return qw(updated_at); } | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_filled: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | 0 | ▶ | sub update_fields { return qw(author body_html summary_html title handle metafields published_at template_suffix); } | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
update_fields: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | 0 | ▶ | sub read_scope { return "read_content"; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
read_scope: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | 0 | ▶ | sub write_scope { return "write_content"; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
write_scope: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | 0 | ▶ | eval(__PACKAGE__->generate_accessors); die $@ if $@; | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
author: not called CC=2 SCAR=16.7
Subroutine
body_html: not called CC=2 SCAR=16.7
Subroutine
created_at: not called CC=2 SCAR=16.7
Subroutine
handle: not called CC=2 SCAR=16.7
Subroutine
id: not called CC=2 SCAR=16.7
Subroutine
published_at: not called CC=2 SCAR=16.7
Subroutine
shop_id: not called CC=2 SCAR=16.7
Subroutine
summary_html: not called CC=2 SCAR=16.7
Subroutine
template_suffix: not called CC=2 SCAR=16.7
Subroutine
title: not called CC=2 SCAR=16.7
Subroutine
updated_at: not called CC=2 SCAR=16.7
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Pod
undocumented
Branch: 12 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | 1 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||