File: GroupEntry.pm

package info (click to toggle)
libvuser-google-api-perl 1.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 348 kB
  • sloc: perl: 3,176; makefile: 4
file content (30 lines) | stat: -rw-r--r-- 642 bytes parent folder | download | duplicates (4)
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
package VUser::Google::Groups::GroupEntry;
use warnings;
use strict;

our $VERSION = '0.2.0';

use Moose;

has 'GroupId'         => (is => 'rw', isa => 'Str | Undef');
has 'GroupName'       => (is => 'rw', isa => 'Str | Undef');
has 'Description'     => (is => 'rw', isa => 'Str | Undef');
has 'EmailPermission' => (is => 'rw', isa => 'Str | Undef');

sub as_hash {
    my $self = shift;

    my %hash = (
	groupId         => $self->GroupId,
	groupName       => $self->GroupName,
	description     => $self->Description,
	emailPermission => $self->EmailPermission,
    );

    return %hash;
}

no Moose;
__PACKAGE__->meta->make_immutable;

1;