The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Finance::Bank::SentinelBenefits::Csv401kConverter::SymbolMap - fuzzy lookup of security descriptions to symbols

VERSION

version 1.3

SYNOPSIS

This class is necessary because Sentinel does not always supply the symbol in the download, so it can become necessary to do a lookup based on the description field that they supply to find the correct security symbol.

Constructor

new()

    my $st = Bank::SentinelBenefits::Csv401kConverter::SymbolMap->new({
        symbol_map => $HashRef[Str] | FileHandle });

Can be initialzed either from a hash mapping of the form description -> symbol or a comma delimited file of the same type.

Internal accessors

$foo->symbol_map()

This is either a hash ref of strings, mapping descriptions to symbols, or a filehandle pointing to a file of the format 'description','symbol

Not really for external use

$foo->_true_symbol_map()

This is a hash ref of strings, mapping descriptions to symbols. Internal use only.

Methods

$foo->get_symbol($description)

Takes a security description. Returns either the symbol, if lookup is successful, or undef;

$foo->BUILD()

Internal Moose infrastructure, ignore.

LICENSE AND COPYRIGHT Copyright 2009-2023 David Solimano This file is part of Finance::Bank::SentinelBenefits::Csv401kConverter

Finance::Bank::SentinelBenefits::Csv401kConverter is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Finance::Bank::SentinelBenefits::Csv401kConverter is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Finance::Bank::SentinelBenefits::Csv401kConverter. If not, see <http://www.gnu.org/licenses/>.