Class: UniqSysOmega::CustomTariffs::CustomTariffBuilder
- Inherits:
-
Object
- Object
- UniqSysOmega::CustomTariffs::CustomTariffBuilder
- Extended by:
- Tariffs
- Defined in:
- lib/omega-tariffs-custom.rb
Class Method Summary collapse
Class Method Details
.build(symbol, tariff_id) ⇒ Object
12 13 14 15 |
# File 'lib/omega-tariffs-custom.rb', line 12 def build(symbol, tariff_id) settings = YAML.load_file(File.(File.join(File.dirname(__FILE__), '..', 'yml', "#{symbol.to_s}.yml"))) TarifBuilder.build Settings.new(settings), tariff_id end |