From 8417bc32b273b70b7db205bddd63bf8c16a94f02 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 24 Jun 2018 02:33:25 -0400 Subject: adjust a couple array apis --- lib/WWW/YNAB/CategoryGroup.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/WWW/YNAB/CategoryGroup.pm') diff --git a/lib/WWW/YNAB/CategoryGroup.pm b/lib/WWW/YNAB/CategoryGroup.pm index d266a3e..28ddd6f 100644 --- a/lib/WWW/YNAB/CategoryGroup.pm +++ b/lib/WWW/YNAB/CategoryGroup.pm @@ -23,8 +23,12 @@ has deleted => ( ); has categories => ( - is => 'ro', - isa => 'ArrayRef[WWW::YNAB::Category]', + traits => ['Array'], + is => 'bare', + isa => 'ArrayRef[WWW::YNAB::Category]', + handles => { + categories => 'elements', + } ); __PACKAGE__->meta->make_immutable; -- cgit v1.2.3-54-g00ecf