line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package XML::SRS::Contact::Address; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
1544
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use MooseX::Method::Signatures; |
6
|
|
|
|
|
|
|
use PRANG::Graph; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
method address() { |
9
|
|
|
|
|
|
|
( $self->address1, |
10
|
|
|
|
|
|
|
$self->address2, |
11
|
|
|
|
|
|
|
$self->city, |
12
|
|
|
|
|
|
|
$self->region, |
13
|
|
|
|
|
|
|
$self->postcode, |
14
|
|
|
|
|
|
|
$self->cc, |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
has_attr 'address1' => |
19
|
|
|
|
|
|
|
is => "ro", |
20
|
|
|
|
|
|
|
isa => "Str", |
21
|
|
|
|
|
|
|
xml_required => 0, |
22
|
|
|
|
|
|
|
xml_name => "Address1", |
23
|
|
|
|
|
|
|
; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
has_attr 'address2' => |
26
|
|
|
|
|
|
|
is => "ro", |
27
|
|
|
|
|
|
|
isa => "Str", |
28
|
|
|
|
|
|
|
xml_required => 0, |
29
|
|
|
|
|
|
|
xml_name => "Address2", |
30
|
|
|
|
|
|
|
; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
has_attr 'city' => |
33
|
|
|
|
|
|
|
is => "ro", |
34
|
|
|
|
|
|
|
isa => "Str", |
35
|
|
|
|
|
|
|
xml_required => 0, |
36
|
|
|
|
|
|
|
xml_name => "City", |
37
|
|
|
|
|
|
|
; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
has_attr 'region' => |
40
|
|
|
|
|
|
|
is => "ro", |
41
|
|
|
|
|
|
|
isa => "Str", |
42
|
|
|
|
|
|
|
xml_required => 0, |
43
|
|
|
|
|
|
|
xml_name => "Province", |
44
|
|
|
|
|
|
|
; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
has_attr 'cc' => |
47
|
|
|
|
|
|
|
is => "ro", |
48
|
|
|
|
|
|
|
isa => "Str", |
49
|
|
|
|
|
|
|
xml_required => 0, |
50
|
|
|
|
|
|
|
xml_name => "CountryCode", |
51
|
|
|
|
|
|
|
; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
has_attr 'postcode' => |
54
|
|
|
|
|
|
|
is => "ro", |
55
|
|
|
|
|
|
|
isa => "Str", |
56
|
|
|
|
|
|
|
xml_required => 0, |
57
|
|
|
|
|
|
|
xml_name => "PostalCode", |
58
|
|
|
|
|
|
|
; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
with 'XML::SRS::Node'; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
use Moose::Util::TypeConstraints; |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
coerce __PACKAGE__ |
65
|
|
|
|
|
|
|
=> from "HashRef" |
66
|
|
|
|
|
|
|
=> via { __PACKAGE__->new( %$_ ); }; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
1; |