src.data_sources.annuity.product.gmdb.types.GmdbTypes

class src.data_sources.annuity.product.gmdb.types.GmdbTypes(path: str)

Data source for the GMDB type translation.

Inheritance Diagram

Inheritance diagram of GmdbTypes

Variables & Properties

Methods

__init__(path)

Constructor method.

gmdb_type(rider_name)

Returns a GMDB types translation.

Details

__init__(path: str)

Constructor method. Loads data from the GMDB types table into cache.

Relative path to the GMDB types table:

resource/annuity/product/gmdb/types.csv

Parameters:

path – Path to the GMDB types table.

cache: DataFrame

Internal cache, populated at runtime.

gmdb_type(rider_name: str) float

Returns a GMDB types translation. Given a GMDB name, returns the type of GMDB rider.

Parameters:

rider_name – Rider name.

Returns:

GMDB type.