diff options
author | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2013-11-07 11:59:14 +0000 |
---|---|---|
committer | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2013-11-07 12:06:25 +0000 |
commit | 75fe8d4a588abd4da62685ab64dfcaafc07cfae6 (patch) | |
tree | 944e055d0cc575b5c10d7b8c6d1f6498006fdb7e /lib/WebService/TFL/Bus/Request.pm | |
parent | migrate to Moo: forecast client (diff) | |
download | HomePanel-75fe8d4a588abd4da62685ab64dfcaafc07cfae6.tar.gz HomePanel-75fe8d4a588abd4da62685ab64dfcaafc07cfae6.tar.bz2 HomePanel-75fe8d4a588abd4da62685ab64dfcaafc07cfae6.zip |
migrate to Moo: bus client
Diffstat (limited to 'lib/WebService/TFL/Bus/Request.pm')
-rw-r--r-- | lib/WebService/TFL/Bus/Request.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/WebService/TFL/Bus/Request.pm b/lib/WebService/TFL/Bus/Request.pm index cf35459..dda6586 100644 --- a/lib/WebService/TFL/Bus/Request.pm +++ b/lib/WebService/TFL/Bus/Request.pm @@ -1,5 +1,6 @@ package WebService::TFL::Bus::Request; -use Moose; +use Moo; +use Types::Standard -all; use WebService::TFL::Bus::Fields; use namespace::autoclean; @@ -12,7 +13,7 @@ for my $field (WebService::TFL::Bus::Fields->query_fields) { has ReturnList => ( is => 'rw', - isa => 'ArrayRef', + isa => ArrayRef, predicate => 'has_ReturnList', ); |