| 1 | ## Domain Registry Interface, Handling of contact data for .RU/.SU/.XN--P1AI | ||||||||||||
| 2 | ## | ||||||||||||
| 3 | ## Copyright (c) 2010-2011 Dmitry Belyavsky <beldmit@gmail.com> | ||||||||||||
| 4 | ## 2011 Patrick Mevzek <netdri@dotandco.com>. All rights reserved. | ||||||||||||
| 5 | ## | ||||||||||||
| 6 | ## This file is part of Net::DRI | ||||||||||||
| 7 | ## | ||||||||||||
| 8 | ## Net::DRI is free software; you can redistribute it and/or modify | ||||||||||||
| 9 | ## it under the terms of the GNU General Public License as published by | ||||||||||||
| 10 | ## the Free Software Foundation; either version 2 of the License, or | ||||||||||||
| 11 | ## (at your option) any later version. | ||||||||||||
| 12 | ## | ||||||||||||
| 13 | ## See the LICENSE file that comes with this distribution for more details. | ||||||||||||
| 14 | #################################################################################################### | ||||||||||||
| 15 | |||||||||||||
| 16 | package Net::DRI::Data::Contact::TCI; | ||||||||||||
| 17 | |||||||||||||
| 18 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 19 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 20 | |||||||||||||
| 21 | 1 | ▶ | use base qw(Net::DRI::Data::Contact); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 22 | |||||||||||||
| 23 | 1 | ▶ | use Net::DRI::Exception; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 24 | |||||||||||||
| 25 | 1 | __PACKAGE__->register_attributes(qw(organization person verified unverified)); | |||||||||||
| 26 | |||||||||||||
| 27 | #################################################################################################### | ||||||||||||
| 28 | |||||||||||||
| 29 | sub validate | ||||||||||||
| 30 | { | ||||||||||||
| 31 | 0 | ▶ | my ($self,$change)=@_; | ||||||||||
|
Subroutine
validate: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||
| 32 | 0 | ▶ | $change||=0; | ||||||||||
|
Condition0%0/2
$change ||= 0
MC/DC0%0/1
$change ||= 0
$change
Truth table0%0/2
A
A= $change
| |||||||||||||
| 33 | |||||||||||||
| 34 | 0 | my @errs; | |||||||||||
| 35 | 0 | ▶ | Net::DRI::Exception::usererr_invalid_parameters('Invalid contact information: '.join('/',@errs)) if @errs; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 36 | |||||||||||||
| 37 | 0 | return 1; ## everything ok. | |||||||||||
| 38 | } | ||||||||||||
| 39 | |||||||||||||
| 40 | #################################################################################################### | ||||||||||||
| 41 | 1 | 1; | |||||||||||
| 42 | |||||||||||||
| 43 | =pod | ||||||||||||
| 44 | |||||||||||||
| 45 | =head1 NAME | ||||||||||||
| 46 | |||||||||||||
| 47 | Net::DRI::Data::Contact::TCI - Handle TCI contact data for Net::DRI | ||||||||||||
| 48 | |||||||||||||
| 49 | =head1 DESCRIPTION | ||||||||||||
| 50 | |||||||||||||
| 51 | This subclass of Net::DRI::Data::Contact adds accessors and validation for | ||||||||||||
| 52 | TCI specific data. | ||||||||||||
| 53 | |||||||||||||
| 54 | =head1 METHODS | ||||||||||||
| 55 | |||||||||||||
| 56 | The following accessors/mutators can be called in chain, as they all return the object itself. | ||||||||||||
| 57 | |||||||||||||
| 58 | =head2 organization() | ||||||||||||
| 59 | |||||||||||||
| 60 | =head2 person() | ||||||||||||
| 61 | |||||||||||||
| 62 | =head2 verified() | ||||||||||||
| 63 | |||||||||||||
| 64 | =head2 unverified() | ||||||||||||
| 65 | |||||||||||||
| 66 | =head1 SUPPORT | ||||||||||||
| 67 | |||||||||||||
| 68 | For now, support questions should be sent to: | ||||||||||||
| 69 | |||||||||||||
| 70 | E<lt>netdri@dotandco.comE<gt> | ||||||||||||
| 71 | |||||||||||||
| 72 | Please also see the SUPPORT file in the distribution. | ||||||||||||
| 73 | |||||||||||||
| 74 | =head1 SEE ALSO | ||||||||||||
| 75 | |||||||||||||
| 76 | http://www.dotandco.com/services/software/Net-DRI/ | ||||||||||||
| 77 | |||||||||||||
| 78 | =head1 AUTHOR | ||||||||||||
| 79 | |||||||||||||
| 80 | Dmitry Belyavsky, E<lt>beldmit@gmail.comE<gt> | ||||||||||||
| 81 | Patrick Mevzek, E<lt>netdri@dotandco.comE<gt> | ||||||||||||
| 82 | |||||||||||||
| 83 | =head1 COPYRIGHT | ||||||||||||
| 84 | |||||||||||||
| 85 | Copyright (c) 2010-2011 Dmitry Belyavsky <beldmit@gmail.com> | ||||||||||||
| 86 | Copyright (c) 2011 Patrick Mevzek <netdri@dotandco.com>. | ||||||||||||
| 87 | All rights reserved. | ||||||||||||
| 88 | |||||||||||||
| 89 | This program is free software; you can redistribute it and/or modify | ||||||||||||
| 90 | it under the terms of the GNU General Public License as published by | ||||||||||||
| 91 | the Free Software Foundation; either version 2 of the License, or | ||||||||||||
| 92 | (at your option) any later version. | ||||||||||||
| 93 | |||||||||||||
| 94 | See the LICENSE file that comes with this distribution for more details. | ||||||||||||
| 95 | |||||||||||||
| 96 | =cut | ||||||||||||