summaryrefslogtreecommitdiffstats
path: root/lib/WWW/YNAB/Month.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-06-24 02:33:25 -0400
committerJesse Luehrs <doy@tozt.net>2018-06-24 02:33:25 -0400
commit8417bc32b273b70b7db205bddd63bf8c16a94f02 (patch)
tree34b1fc10a431d6425f2162293b312d557d6debd7 /lib/WWW/YNAB/Month.pm
parent695895e26618cbfaa89183848cbeadd7ab9a0d5b (diff)
downloadwww-ynab-8417bc32b273b70b7db205bddd63bf8c16a94f02.tar.gz
www-ynab-8417bc32b273b70b7db205bddd63bf8c16a94f02.zip
adjust a couple array apis
Diffstat (limited to 'lib/WWW/YNAB/Month.pm')
-rw-r--r--lib/WWW/YNAB/Month.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/WWW/YNAB/Month.pm b/lib/WWW/YNAB/Month.pm
index 4e7412f..3680e18 100644
--- a/lib/WWW/YNAB/Month.pm
+++ b/lib/WWW/YNAB/Month.pm
@@ -23,8 +23,12 @@ has age_of_money => (
);
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;