File: Groups.pm

package info (click to toggle)
libvuser-google-api-perl 1.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 348 kB
  • sloc: perl: 3,176; makefile: 4
file content (39 lines) | stat: -rw-r--r-- 615 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
31
32
33
34
35
36
37
38
39
package VUser::Google::Groups;
use warnings;
use strict;

our $VERSION = '0.2.0';

use Moose;

has 'google' => (
    is       => 'rw',
    isa      => 'VUser::Google::ApiProtocol',
    required => 1
);

has base_url => (is => 'rw', isa => 'Str');

# Turn on deugging
has 'debug' => (is => 'rw', default => 0);

#### Methods ####

## Util
#print out debugging to STDERR if debug is set
sub dprint
{
    my $self = shift;
    my $text = shift;
    my @args = @_;
    if( $self->debug and defined ($text) ) {
	print STDERR sprintf ("$text\n", @args);
    }
}

no Moose;
__PACKAGE__->meta->make_immutable;

1;

__END__