Class: Filegen::DataSourceBuilder
- Inherits:
-
Object
- Object
- Filegen::DataSourceBuilder
- Defined in:
- lib/filegen/data_source_builder.rb
Overview
Build data sources
Instance Attribute Summary collapse
-
#sources ⇒ Object
readonly
Returns the value of attribute sources.
Instance Method Summary collapse
-
#initialize(params) ⇒ DataSourceBuilder
constructor
Create the data source builder.
Constructor Details
#initialize(params) ⇒ DataSourceBuilder
Create the data source builder
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/filegen/data_source_builder.rb', line 19 def initialize(params) @params = params validate_data_sources @sources = [] chosen_data_sources.each do |o| @sources << known_data_source_builders[o] end end |
Instance Attribute Details
#sources ⇒ Object (readonly)
Returns the value of attribute sources.
13 14 15 |
# File 'lib/filegen/data_source_builder.rb', line 13 def sources @sources end |