summaryrefslogtreecommitdiffstats
path: root/lib/WWW/YNAB/Month.pm
blob: 3680e186f8d050638029bb77aed2c06d6922ed03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package WWW::YNAB::Month;
use Moose;

has month => (
    is       => 'ro',
    isa      => 'Str',
    required => 1,
);

has note => (
    is  => 'ro',
    isa => 'Maybe[Str]',
);

has to_be_budgeted => (
    is  => 'ro',
    isa => 'Maybe[Int]',
);

has age_of_money => (
    is  => 'ro',
    isa => 'Maybe[Int]',
);

has categories => (
    traits  => ['Array'],
    is      => 'bare',
    isa     => 'ArrayRef[WWW::YNAB::Category]',
    handles => {
        categories => 'elements',
    }
);

__PACKAGE__->meta->make_immutable;
no Moose;

1;