aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Open311/Endpoint/Service/Exor.pm
blob: 6261875c141ae10c573df370727ee2a0281258b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package Open311::Endpoint::Service::Exor;
use Moo;
extends 'Open311::Endpoint::Service';
use Open311::Endpoint::Service::Attribute;

has '+attributes' => (
    is => 'ro',
    default => sub { [
        Open311::Endpoint::Service::Attribute->new(
            code => 'easting',
            variable => 0, # set by server
            datatype => 'number',
            required => 1,
            datatype_description => 'a number',
            description => 'easting',
        ),
        Open311::Endpoint::Service::Attribute->new(
            code => 'northing',
            variable => 0, # set by server
            datatype => 'number',
            required => 1,
            datatype_description => 'a number',
            description => 'northing',
        ),
        Open311::Endpoint::Service::Attribute->new(
            code => 'closest_address',
            variable => 0, # set by server
            datatype => 'string',
            required => 1,
            datatype_description => 'an address',
            description => 'closest address',
        ),
        Open311::Endpoint::Service::Attribute->new(
            code => 'external_id',
            variable => 0, # set by server
            datatype => 'string',
            required => 1,
            datatype_description => 'an id',
            description => 'external system ID',
        ),
    ] },
);

1;