blib/lib/WWW/eNom/PrivateNameServer.pm

filter: Statementstmt 100% 32 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod n/a totaltotal 100% 41 / 41 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/WWW/eNom/DomainAvailability.pm ↑ Summary blib/lib/WWW/eNom/Role/ParseDomain.pm »
1 package WWW::eNom::PrivateNameServer;
2  
3 48 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 48 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 48 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 48 ▶use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 48 ▶use MooseX::Params::Validate;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 48 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 48 ▶use WWW::eNom::Types qw( DomainName IP );
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 48 ▶use Try::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 48 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 48 our $VERSION = 'v2.6.0'; # VERSION
17 # ABSTRACT: Representation of Private Nameserver
18  
19 48 has 'name' => (
20 is => 'ro',
21 isa => DomainName,
22 required => 1,
23 );
24  
25 48 has 'ip' => (
26 is => 'ro',
27 isa => IP,
28 required => 1,
29 );
30  
31 48 __PACKAGE__->meta->make_immutable;
32 48 1;
33  
34 __END__
35  
36 =head1 NAME
37  
38 WWW::eNom::PrivateNameServer - Representation of Private Nameserver
39  
40 =head1 SYNOPSIS
41  
42 my $domain = WWW::eNom::Domain->new( ... );
43  
44 my $private_name_server = WWW::eNom::PrivateNameServer->new(
45 name => 'ns1.' . $domain->name,
46 ip => '4.2.2.1',
47 );
48  
49 =head1 DESCRIPTION
50  
51 Represents L<eNom|https://www.enom.com> private nameservers, containing the name and ip address.
52  
53 =head1 ATTRIBUTES
54  
55 =head2 B<name>
56  
57 The FQDN of the nameserver (will be ns1.your-domain.com). Keep in mind the 'your-domain.com' part must match the registered domain this is going to be a private nameserver for.
58  
59 =head2 B<ip>
60  
61 The IP address that the above name should resolve to.
62  
63 =cut
« blib/lib/WWW/eNom/DomainAvailability.pm ↑ Summary blib/lib/WWW/eNom/Role/ParseDomain.pm »