Module: DataModeler::Model
- Defined in:
- lib/data_modeler/model/selector.rb
Overview
All models for the framework should belong to this module. Also includes a model selector for initialization from config.
Defined Under Namespace
Classes: FANN
Class Method Summary collapse
-
.selector(type:, **opts) ⇒ Model
Returns a new ‘Model` based on the `type` of choice initialized with `opts` parameters.
Class Method Details
.selector(type:, **opts) ⇒ Model
Returns a new ‘Model` based on the `type` of choice initialized
with `opts` parameters
11 12 13 14 15 16 17 |
# File 'lib/data_modeler/model/selector.rb', line 11 def self.selector type:, **opts case type when :fann FANN.new opts else abort "Unrecognized model: #{type}" end end |