line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::DNSMadeEasy::Domain::Record; |
2
|
|
|
|
|
|
|
BEGIN { |
3
|
3
|
|
|
3
|
|
114
|
$WWW::DNSMadeEasy::Domain::Record::AUTHORITY = 'cpan:GETTY'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
{ |
6
|
|
|
|
|
|
|
$WWW::DNSMadeEasy::Domain::Record::VERSION = '0.001'; |
7
|
|
|
|
|
|
|
} |
8
|
|
|
|
|
|
|
# ABSTRACT: A domain record in the DNSMadeEasy API |
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
16
|
use Moo; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
15
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has id => ( |
13
|
|
|
|
|
|
|
# isa => 'Int', |
14
|
|
|
|
|
|
|
is => 'ro', |
15
|
|
|
|
|
|
|
required => 1, |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
has domain => ( |
19
|
|
|
|
|
|
|
# isa => 'WWW::DNSMadeEasy::Domain', |
20
|
|
|
|
|
|
|
is => 'ro', |
21
|
|
|
|
|
|
|
required => 1, |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has obj => ( |
25
|
|
|
|
|
|
|
# isa => 'HashRef', |
26
|
|
|
|
|
|
|
is => 'ro', |
27
|
|
|
|
|
|
|
builder => '_build_obj', |
28
|
|
|
|
|
|
|
lazy => 1, |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub _build_obj { |
32
|
0
|
|
|
0
|
|
|
my ( $self ) = @_; |
33
|
0
|
|
|
|
|
|
return $self->domain->dme->request('GET',$self->path); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub ttl { shift->obj->{ttl} } |
37
|
0
|
|
|
0
|
1
|
|
sub gtd_location { shift->obj->{gtdLocation} } |
38
|
0
|
|
|
0
|
1
|
|
sub name { shift->obj->{name} } |
39
|
0
|
|
|
0
|
1
|
|
sub data { shift->obj->{data} } |
40
|
0
|
|
|
0
|
1
|
|
sub type { shift->obj->{type} } |
41
|
0
|
|
|
0
|
1
|
|
sub password { shift->obj->{password} } |
42
|
0
|
|
|
0
|
1
|
|
sub description { shift->obj->{description} } |
43
|
0
|
|
|
0
|
1
|
|
sub keywords { shift->obj->{keywords} } |
44
|
0
|
|
|
0
|
1
|
|
sub title { shift->obj->{title} } |
45
|
0
|
|
|
0
|
1
|
|
sub redirect_type { shift->obj->{redirectType} } |
46
|
0
|
|
|
0
|
1
|
|
sub hard_link { shift->obj->{hardLink} } |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub path { |
49
|
0
|
|
|
0
|
0
|
|
my ( $self ) = @_; |
50
|
0
|
|
|
|
|
|
$self->domain->path_records.'/'.$self->id; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub delete { |
54
|
0
|
|
|
0
|
1
|
|
my ( $self ) = @_; |
55
|
0
|
|
|
|
|
|
$self->dme->request('DELETE',$self->path); |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
1; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
__END__ |