Document/Builder/Role/Parameters.pm

filter: Statementstmt 90.0% 9 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 84.6% 11 / 13 CC 1 SCAR 0.4
CC
1
Cov
90%
__ANON__
1.1
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« Document/Builder.pm ↑ Summary Document/Role/Attributes.pm »
1 package JSONAPI::Document::Builder::Role::Parameters;
2 6 $JSONAPI::Document::Builder::Role::Parameters::VERSION = '2.0';
3 =head1 NAME
4  
5 JSONAPI::Document::Builder::Role::Parameters - All available parameters for builders
6  
7 =head1 VERSION
8  
9 version 2.0
10  
11 =head1 DESCRIPTION
12  
13 This role contains (hopefully) all the understandable parameters that can
14 be understood by any given builder.
15  
16 =cut
17  
18 6 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 =head2 fields
21  
22 Subset of fields to include in the document.
23  
24 =cut
25  
26 has fields => (
27 is => 'ro',
28 1 ▶ default => sub { [] });
Subroutine __ANON__: called CC=1 SCAR=0.0
29  
30 =head2 api_url
31  
32 The base URL of the API. This is a required
33 attribute when you want to build links.
34  
35 =cut
36  
37 6 has api_url => (is => 'ro',);
38  
39 =head2 kebab_case_attrs
40  
41 Boolean; Default: false
42  
43 Determine whether to replace underscores
44 with dashes for the rows column attributes.
45  
46 =cut
47  
48 has kebab_case_attrs => (
49 is => 'ro',
50 0 ▶ default => sub { 0 });
Subroutine __ANON__: not called CC=1 SCAR=1.2
51  
52 6 1;
« Document/Builder.pm ↑ Summary Document/Role/Attributes.pm »