summaryrefslogtreecommitdiff
path: root/lib/WebService/ForecastIo/DataPoint.pm
blob: 13c60dda3a12b46f82119f78aeeec008bb6372f4 (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 Types::DateTime -all;
use Types::Standard -all;
use namespace::clean;
 
has [qw( time
         sunriseTime sunsetTime
         precipIntensityMaxTime
         temperatureMinTime temperatureMaxTime )] => (
    is => 'ro',
    isa => DateTimeUTC,
    coerce => 1,
);
 
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;