Class: UniqSysOmega::Tariffs::TarifBuilder
- Inherits:
-
Object
- Object
- UniqSysOmega::Tariffs::TarifBuilder
- Defined in:
- lib/tarif_builder.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TarifBuilder
constructor
A new instance of TarifBuilder.
Constructor Details
#initialize ⇒ TarifBuilder
Returns a new instance of TarifBuilder.
5 6 7 |
# File 'lib/tarif_builder.rb', line 5 def initialize raise "Cannot instantinate singleton class" end |
Class Method Details
.build(settings, tarif_id) ⇒ Object
9 10 11 12 |
# File 'lib/tarif_builder.rb', line 9 def self.build(settings, tarif_id) class_name = eval(settings.klass) class_name.new(settings.settings, tarif_id) end |