holidefs v0.3.2 Holidefs.Definition.Store View Source

This module loads and stores all the holiday definitions.

Link to this section Summary

Functions

Returns all the loaded definitions with their rules

Returns a specification to start this module under a supervisor.

Returns the definitions for the given locale

Starts the server and loads all calendar files

Link to this section Functions

Specs

all_definitions() :: [Holidefs.Definition.t()]

Returns all the loaded definitions with their rules

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

get_definition(Holidefs.locale_code()) :: Holidefs.Definition.t() | nil

Returns the definitions for the given locale

Specs

start_link(nil) :: Agent.on_start()

Starts the server and loads all calendar files