Class: WLIConfig::ProductFactory
- Inherits:
-
Object
- Object
- WLIConfig::ProductFactory
- Includes:
- Product
- Defined in:
- lib/wliconfig.rb
Overview
Create concrete product instance
Constant Summary collapse
- @@PRODUCT_MAP =
{ "WLI-UTX-AG300" => WLI_UTX_AG300 }
Class Method Summary collapse
Class Method Details
.create(product, *params) ⇒ Object
141 142 143 |
# File 'lib/wliconfig.rb', line 141 def self.create(product, *params) @@PRODUCT_MAP[product].new(*params) end |