File Coverage

blib/lib/WWW/LogicBoxes/Contact/CA/Agreement.pm
Criterion Covered Total %
statement 18 18 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 24 24 100.0


line stmt bran cond sub pod time code
1             package WWW::LogicBoxes::Contact::CA::Agreement;
2              
3 39     39   394509 use strict;
  39         90  
  39         1190  
4 39     39   200 use warnings;
  39         82  
  39         1022  
5              
6 39     39   665 use Moose;
  39         139289  
  39         298  
7 39     39   261673 use MooseX::StrictConstructor;
  39         57709  
  39         313  
8 39     39   146690 use namespace::autoclean;
  39         91  
  39         836  
9              
10 39     39   4310 use WWW::LogicBoxes::Types qw( Str );
  39         87  
  39         304  
11              
12             our $VERSION = '1.10.0'; # VERSION
13             # ABSTRACT: CA Registrant Agreement
14              
15             has 'version' => (
16             is => 'ro',
17             isa => Str,
18             required => 1,
19             );
20              
21             has 'content' => (
22             is => 'ro',
23             isa => Str,
24             required => 1,
25             );
26              
27             __PACKAGE__->meta->make_immutable;
28             1;
29              
30             =pod
31              
32             =head1 NAME
33              
34             WWW::LogicBoxes::Contact::CA::Agreement - The Registrant Agreement for a .ca Contact
35              
36             =head1 SYNOPSIS
37              
38             use strict;
39             use warnings;
40              
41             my $api = WWW::LogicBoxes->new( ... );
42             my $agreement = $api->get_ca_registrant_agreement();
43              
44             print "Version: " . $agreement->version;
45              
46             =head1 DESCRIPTION
47              
48             .ca domain registrations require a specialized CA Agreement be accepted. This object contains the version of that agreement as well as the raw HTML for displaying the agreement to customers for them to agree to.
49              
50             =head1 ATTRIBUTES
51              
52             =head2 B<version>
53              
54             Str describing the version of the CA Registrant Agreement.
55              
56             =head2 B<content>
57              
58             HTML content of the CA Registrant Agreement.
59              
60             =cut