| 1 | ## Domain Registry Interface, Example Driver for .EXAMPLE | ||||||||||
| 2 | ## | ||||||||||
| 3 | ## Copyright (c) 2018 Patrick Mevzek <netdri@dotandco.com>. All rights reserved. | ||||||||||
| 4 | ## | ||||||||||
| 5 | ## This file is part of Net::DRI | ||||||||||
| 6 | ## | ||||||||||
| 7 | ## Net::DRI is free software; you can redistribute it and/or modify | ||||||||||
| 8 | ## it under the terms of the GNU General Public License as published by | ||||||||||
| 9 | ## the Free Software Foundation; either version 2 of the License, or | ||||||||||
| 10 | ## (at your option) any later version. | ||||||||||
| 11 | ## | ||||||||||
| 12 | ## See the LICENSE file that comes with this distribution for more details. | ||||||||||
| 13 | #################################################################################################### | ||||||||||
| 14 | |||||||||||
| 15 | package Net::DRI::DRD::Example; | ||||||||||
| 16 | |||||||||||
| 17 | 13 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 13 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | |||||||||||
| 20 | 13 | ▶ | use base qw/Net::DRI::DRD/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | |||||||||||
| 22 | #################################################################################################### | ||||||||||
| 23 | |||||||||||
| 24 | sub new | ||||||||||
| 25 | 12 | ▶ | { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 26 | 12 | my $class=shift; | |||||||||
| 27 | 12 | my $self=$class->SUPER::new(@_); | |||||||||
| 28 | 12 | return $self; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 0 | ▶ | sub periods { return map { DateTime::Duration->new(years => $_) } (1..10); } | ||||||||
|
Subroutine
periods: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 32 | 12 | ▶ | sub name { return 'EXAMPLE'; } | ||||||||
|
Subroutine
name: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 33 | 12 | ▶ | sub tlds { return qw/example/; } | ||||||||
|
Subroutine
tlds: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 34 | 0 | ▶ | sub object_types { return qw/domain ns contact/; } | ||||||||
|
Subroutine
object_types: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 35 | 0 | ▶ | sub profile_types { return qw/epp/; } | ||||||||
|
Subroutine
profile_types: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 36 | |||||||||||
| 37 | sub transport_protocol_default | ||||||||||
| 38 | 12 | ▶ | { | ||||||||
|
Subroutine
transport_protocol_default: called CC=2 SCAR=8.1
Pod
undocumented
| |||||||||||
| 39 | 12 | my ($self,$type)=@_; | |||||||||
| 40 | |||||||||||
| 41 | 12 | ▶ | return ('Net::DRI::Transport::Socket',{remote_host=>'localhost', remote_port=>700},'Net::DRI::Protocol::EPP',{}) if $type eq 'epp'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 42 | 0 | return; | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | #################################################################################################### | ||||||||||
| 46 | 13 | 1; | |||||||||
| 47 | |||||||||||
| 48 | __END__ | ||||||||||