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.pm33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/WWW/YNAB/CategoryGroup.pm b/lib/WWW/YNAB/CategoryGroup.pm
new file mode 100644
index 0000000..d266a3e
--- /dev/null
+++ b/lib/WWW/YNAB/CategoryGroup.pm
@@ -0,0 +1,33 @@
+package WWW::YNAB::CategoryGroup;
+use Moose;
+
+has id => (
+ is => 'ro',
+ isa => 'Str',
+ required => 1,
+);
+
+has name => (
+ is => 'ro',
+ isa => 'Str',
+);
+
+has hidden => (
+ is => 'ro',
+ isa => 'Bool',
+);
+
+has deleted => (
+ is => 'ro',
+ isa => 'Bool',
+);
+
+has categories => (
+ is => 'ro',
+ isa => 'ArrayRef[WWW::YNAB::Category]',
+);
+
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
+1;