Module: GOBLExtensions::Tax::RegimeHelper::ClassMethods

Included in:
GOBL::Tax::Regime
Defined in:
lib/gobl_extensions/tax/regime_helper.rb

Instance Method Summary collapse

Instance Method Details

#fetch(code) ⇒ Regime

Loads a GOBL::Tax::Regime object identified by the given code with all its data

Parameters:

  • code (String)

    the code of the regime to load

Returns:

  • (Regime)

    the requested regime



13
14
15
# File 'lib/gobl_extensions/tax/regime_helper.rb', line 13

def fetch(code)
  regimes[code] ||= load_regime(code)
end