summaryrefslogtreecommitdiff
path: root/lib/WebService/ForecastIo/Alert.pm
blob: af826d802d17cdd4a4f4973275f80cca87f89070 (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
package WebService::ForecastIo::Alert; 
use Moo;
use namespace::autoclean;
use Types::Standard -all;
use Types::URI 'Uri';
use Types::DateTime 'DateTimeT';
 
has title => (
    is => 'ro',
    isa => Str,
);
 
has expires => (
    is => 'ro',
    isa => DateTimeT,
    coerce => DateTimeT->coercion,
);
 
has uri => (
    is => 'ro',
    isa => Uri,
    coerce => Uri->coercion,
);
 
1;