Class: MasterDataTool::SpecConfig
- Inherits:
-
Object
- Object
- MasterDataTool::SpecConfig
- Defined in:
- lib/master_data_tool/spec_config.rb
Instance Attribute Summary collapse
-
#application_record_class ⇒ Object
Returns the value of attribute application_record_class.
-
#dump_config ⇒ Object
Returns the value of attribute dump_config.
-
#import_config ⇒ Object
Returns the value of attribute import_config.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#spec_name ⇒ Object
Returns the value of attribute spec_name.
-
#verify_config ⇒ Object
Returns the value of attribute verify_config.
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
-
#initialize(spec_name:, application_record_class:, import_config: nil, verify_config: nil, dump_config: nil, logger: Logger.new(nil)) ⇒ SpecConfig
constructor
A new instance of SpecConfig.
Constructor Details
#initialize(spec_name:, application_record_class:, import_config: nil, verify_config: nil, dump_config: nil, logger: Logger.new(nil)) ⇒ SpecConfig
Returns a new instance of SpecConfig.
5 6 7 8 9 10 11 12 13 |
# File 'lib/master_data_tool/spec_config.rb', line 5 def initialize(spec_name:, application_record_class:, import_config: nil, verify_config: nil, dump_config: nil, logger: Logger.new(nil)) @spec_name = spec_name.presence || '' @application_record_class = application_record_class @import_config = import_config @verify_config = verify_config @dump_config = dump_config @logger = logger end |
Instance Attribute Details
#application_record_class ⇒ Object
Returns the value of attribute application_record_class.
3 4 5 |
# File 'lib/master_data_tool/spec_config.rb', line 3 def application_record_class @application_record_class end |
#dump_config ⇒ Object
Returns the value of attribute dump_config.
3 4 5 |
# File 'lib/master_data_tool/spec_config.rb', line 3 def dump_config @dump_config end |
#import_config ⇒ Object
Returns the value of attribute import_config.
3 4 5 |
# File 'lib/master_data_tool/spec_config.rb', line 3 def import_config @import_config end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/master_data_tool/spec_config.rb', line 3 def logger @logger end |
#spec_name ⇒ Object
Returns the value of attribute spec_name.
3 4 5 |
# File 'lib/master_data_tool/spec_config.rb', line 3 def spec_name @spec_name end |
#verify_config ⇒ Object
Returns the value of attribute verify_config.
3 4 5 |
# File 'lib/master_data_tool/spec_config.rb', line 3 def verify_config @verify_config end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
15 16 17 |
# File 'lib/master_data_tool/spec_config.rb', line 15 def configure yield self end |