diff options
author | dakkar <dakkar@thenautilus.net> | 2013-05-17 20:27:32 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2013-05-17 20:27:32 +0100 |
commit | ae0b3100bf8f11e23cf60132a7467f7aff2950dc (patch) | |
tree | 583a0021990d2fd5bbd5b42334b12ac6ee9fbe4e /lib/WebService/ForecastIo/DataPoint.pm | |
parent | example data file (diff) | |
download | HomePanel-ae0b3100bf8f11e23cf60132a7467f7aff2950dc.tar.gz HomePanel-ae0b3100bf8f11e23cf60132a7467f7aff2950dc.tar.bz2 HomePanel-ae0b3100bf8f11e23cf60132a7467f7aff2950dc.zip |
DateTime fields
Diffstat (limited to 'lib/WebService/ForecastIo/DataPoint.pm')
-rw-r--r-- | lib/WebService/ForecastIo/DataPoint.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/WebService/ForecastIo/DataPoint.pm b/lib/WebService/ForecastIo/DataPoint.pm index c05e981..ba06fa1 100644 --- a/lib/WebService/ForecastIo/DataPoint.pm +++ b/lib/WebService/ForecastIo/DataPoint.pm @@ -1,6 +1,7 @@ package WebService::ForecastIo::DataPoint; use Moose; use Moose::Util::TypeConstraints; +use MooseX::Types::DateTime; class_type 'WebService::ForecastIo::DataPoint'; @@ -22,7 +23,8 @@ has [qw( time precipIntensityMaxTime temperatureMinTime temperatureMaxTime )] => ( is => 'ro', - isa => 'Int', # time! + isa => 'DateTime', + coerce => 1, ); has [qw(summary icon precipType)] => ( |