RST/DataProvider/Column.pm

filter: Statementstmt 44.4% 4 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 20.0% 1 / 5 Podpod 75.0% 3 / 4 totaltotal 44.4% 8 / 18 CC 1 SCAR 5.9
CC
1
Cov
44%
new
2.0
name
2.0
type
2.0
CRAP 1.8
« RST/Resource.pm ↑ Summary RST.pm »
1 package ICANN::RST::DataProvider::Column;
2 # ABSTRACT: an object representing a column in an RST data provider.
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 sub new {
6 0 ▶ my ($package, $ref) = @_;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
7 0 return bless($ref, $package);
8 }
9  
10 0 ▶sub name { $_[0]->{'Name'} }
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
11 0 ▶sub type { $_[0]->{'Type'} }
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
12 0 ▶sub description { ICANN::RST::Text->new($_[0]->{'Description'}) }
Subroutine description: not called CC=1 SCAR=6.9
Pod documented
13  
14 1 1;
15  
16 __END__
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 ICANN::RST::DataProvider::Column - an object representing a column in an RST data provider.
25  
26 =head1 VERSION
27  
28 version 0.03
29  
30 =head1 METHODS
31  
32 =head2 name()
33  
34 The column name.
35  
36 =head2 type()
37  
38 The column type.
39  
40 =head2 description()
41  
42 A L<ICANN::RST::Text> object containing the textual description of the column.
43  
44 =head1 AUTHOR
45  
46 Gavin Brown <gavin.brown@icann.org>
47  
48 =head1 COPYRIGHT AND LICENSE
49  
50 This software is copyright (c) 2025 by Internet Corporation for Assigned Names and Number (ICANN).
51  
52 This is free software; you can redistribute it and/or modify it under
53 the same terms as the Perl 5 programming language system itself.
54  
55 =cut
« RST/Resource.pm ↑ Summary RST.pm »