diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-06-24 13:08:41 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-06-24 13:08:41 -0400 |
commit | 02645507b1ae3d9422f453568f4e1a732e18f5e7 (patch) | |
tree | 8914335e4648eff56bbeaddf79c7d634271b1dee /lib/WWW/YNAB/Category.pm | |
parent | c1fb530eea90fcf7c1c294b44d6d833e4dbcd809 (diff) | |
download | www-ynab-02645507b1ae3d9422f453568f4e1a732e18f5e7.tar.gz www-ynab-02645507b1ae3d9422f453568f4e1a732e18f5e7.zip |
docs
Diffstat (limited to 'lib/WWW/YNAB/Category.pm')
-rw-r--r-- | lib/WWW/YNAB/Category.pm | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lib/WWW/YNAB/Category.pm b/lib/WWW/YNAB/Category.pm index 2fa99ef..da02c19 100644 --- a/lib/WWW/YNAB/Category.pm +++ b/lib/WWW/YNAB/Category.pm @@ -1,5 +1,25 @@ package WWW::YNAB::Category; + use Moose; +# ABSTRACT: Category model object + +=head1 SYNOPSIS + + use WWW::YNAB; + + my $ynab = WWW::YNAB->new(...); + my @budgets = $ynab->budgets; + my $transaction = $budgets[0]->category('12345678-1234-1234-1234-1234567890ab'); + +=head1 OVERVIEW + +See L<https://api.youneedabudget.com/v1#/Categories> for more information. + +=cut + +=method id + +=cut has id => ( is => 'ro', @@ -7,41 +27,73 @@ has id => ( required => 1, ); +=method category_group_id + +=cut + has category_group_id => ( is => 'ro', isa => 'Str', ); +=method name + +=cut + has name => ( is => 'ro', isa => 'Str', ); +=method hidden + +=cut + has hidden => ( is => 'ro', isa => 'Bool', ); +=method note + +=cut + has note => ( is => 'ro', isa => 'Maybe[Str]', ); +=method budgeted + +=cut + has budgeted => ( is => 'ro', isa => 'Int', ); +=method activity + +=cut + has activity => ( is => 'ro', isa => 'Int', ); +=method balance + +=cut + has balance => ( is => 'ro', isa => 'Int', ); +=method deleted + +=cut + has deleted => ( is => 'ro', isa => 'Bool', |