summaryrefslogtreecommitdiff
path: root/lib/WebService/ForecastIo/DataPoint.pm
blob: 47ef65911b62fca8e22e2973b5f7bdac8598e315 (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
package WebService::ForecastIo::DataPoint; 
use Moo;
use namespace::autoclean;
use Types::DateTime 'DateTimeT';
use Types::Standard -all;
 
has [qw( time
         sunriseTime sunsetTime
         precipIntensityMaxTime
         temperatureMinTime temperatureMaxTime )] => (
    is => 'ro',
    isa => DateTimeT,
    coerce => DateTimeT->coercion,
);
 
has [qw(summary icon precipType)] => (
    is => 'ro',
    isa => Str,
);
 
has [qw( precipIntensity precipIntensityMax
         precipProbability precipAccumulation
         temperature temperatureMin temperatureMax
         dewPoint humidity
         windSpeed windBearing
         cloudCover
         pressure visibility ozone )] => (
    is => 'ro',
    isa => Num,
);
 
1;