File Coverage

blib/lib/Yahoo/Marketing/Role.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Yahoo::Marketing::Role;
2             # Copyright (c) 2009 Yahoo! Inc. All rights reserved.
3             # The copyrights to the contents of this file are licensed under the Perl Artistic License (ver. 15 Aug 1997)
4              
5 4     4   45391 use strict; use warnings;
  4     4   10  
  4         118  
  4         22  
  4         9  
  4         105  
6              
7 4     4   49 use base qw/Yahoo::Marketing::ComplexType/;
  4         8  
  4         2194  
8              
9             =head1 NAME
10              
11             Yahoo::Marketing::Role - an object to represent a user role for an account, for example, AccountAdministrator or CampaignManager. Roles determine the capabilities that a user has, which in turn determine the operations a user can execute within the system. The association between a User, a Role, and an Account is an Authorization.
12              
13              
14             =cut
15              
16             sub _user_setable_attributes {
17             return ( qw/
18             name
19             / );
20             }
21              
22             sub _read_only_attributes {
23             return ( qw/
24             / );
25             }
26              
27             __PACKAGE__->mk_accessors( __PACKAGE__->_user_setable_attributes,
28             __PACKAGE__->_read_only_attributes
29             );
30              
31              
32             1;
33             =head1 SYNOPSIS
34              
35             See L for documentation of the various data objects.
36              
37              
38             =head2 new
39              
40             Creates a new instance
41              
42             =cut
43              
44             =head1 METHODS
45              
46             =head2 get/set methods
47              
48             =over 8
49              
50             =back
51              
52             =head2 get (read only) methods
53              
54             name
55              
56             =over 8
57              
58              
59             =back
60              
61             =cut
62