summaryrefslogtreecommitdiff
path: root/lib/WebService/TFL/Bus/Request.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/WebService/TFL/Bus/Request.pm')
-rw-r--r--lib/WebService/TFL/Bus/Request.pm5
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',
);