WWW::USF::Directory::Entry::Affiliation - Information about an affiliation of an entry
Version 0.003
# Print the afflilation say $affiliation; # Does the affiliation have a department? say $affiliation->has_department ? 'yes' : 'no';
Information about an affiliation of an entry. These objects are typically created by WWW::USF::Directory.
This is fully object-oriented, and as such before any method can be used, the constructor needs to be called to create an object to work with.
This will construct a new object.
%attributes is a HASH where the keys are attributes (specified in the "ATTRIBUTES" section).
%attributes
$attributes is a HASHREF where the keys are attributes (specified in the "ATTRIBUTES" section).
$attributes
This is a special case where the $role_department_string is a string that came from the directory page in the format role \s+ : \s+ department.
$role_department_string
role \s+ : \s+ department
This is the department in which the affiliation applies.
Required. This is the role of the affiliation.
This method is used to return a string that will be given when this object is used in a string context. This returns "role: department" or "role".
my $affiliation = WWW::USF::Directory::Entry::Affiliation->new( role => 'My Role' department => 'Department' ); say $affiliation; # Prints "My Role: Department"
Moose 0.89
MooseX::StrictConstructor 0.08
namespace::clean 0.04
Douglas Christopher Wilson, <doug at somethingdoug.com>
<doug at somethingdoug.com>
Please report any bugs or feature requests to bug-www-usf-directory at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW::USF::Directory. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-www-usf-directory at rt.cpan.org
I highly encourage the submission of bugs and enhancements to my modules.
Copyright 2010 Douglas Christopher Wilson.
This program is free software; you can redistribute it and/or modify it under the terms of either:
the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
the Artistic License version 2.0.
To install WWW::USF::Directory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::USF::Directory
CPAN shell
perl -MCPAN -e shell install WWW::USF::Directory
For more information on module installation, please visit the detailed CPAN module installation guide.