summaryrefslogtreecommitdiffstats
path: root/lib/WWW/YNAB/CategoryGroup.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/WWW/YNAB/CategoryGroup.pm')
-rw-r--r--lib/WWW/YNAB/CategoryGroup.pm36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/WWW/YNAB/CategoryGroup.pm b/lib/WWW/YNAB/CategoryGroup.pm
index 28ddd6f..346dc0e 100644
--- a/lib/WWW/YNAB/CategoryGroup.pm
+++ b/lib/WWW/YNAB/CategoryGroup.pm
@@ -1,5 +1,25 @@
package WWW::YNAB::CategoryGroup;
+
use Moose;
+# ABSTRACT: CategoryGroup model object
+
+=head1 SYNOPSIS
+
+ use WWW::YNAB;
+
+ my $ynab = WWW::YNAB->new(...);
+ my @budgets = $ynab->budgets;
+ my @category_groups = $budgets[0]->category_groups
+
+=head1 OVERVIEW
+
+See L<https://api.youneedabudget.com/v1#/Categories> for more information.
+
+=cut
+
+=method id
+
+=cut
has id => (
is => 'ro',
@@ -7,21 +27,37 @@ has id => (
required => 1,
);
+=method name
+
+=cut
+
has name => (
is => 'ro',
isa => 'Str',
);
+=method hidden
+
+=cut
+
has hidden => (
is => 'ro',
isa => 'Bool',
);
+=method deleted
+
+=cut
+
has deleted => (
is => 'ro',
isa => 'Bool',
);
+=method categories
+
+=cut
+
has categories => (
traits => ['Array'],
is => 'bare',