Koha::Patron::Attributes - Koha Patron Attributes Object set class
my $attributes = Koha::Patron::Attributes->search( $params );
my $attributes = Koha::Patron::Attributes->filter_by_branch_limitations([$branchcode]);
Search patron attributes filtered by a library
If $branchcode exists it will be used to filter the result set.
Otherwise it will be the library of the logged in user.
$new_attributes is an arrayref of hashrefs