File: User.pm

package info (click to toggle)
libmagpie-perl 1.141660-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 3,524 kB
  • ctags: 337
  • sloc: perl: 4,081; xml: 405; makefile: 26
file content (18 lines) | stat: -rw-r--r-- 288 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package Magpie::Pipeline::Resource::Kioku::User;
use Moose;

has [qw(name status)] => (
    isa         => 'Str',
    is          => 'ro',
    required    => 1,
);

sub TO_JSON {
    my $self = shift;
    return {
        name => $self->name,
        status => $self->status,
    };
}

1;