Class: MasterDataTool::SpecConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/master_data_tool/spec_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_classObject

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_configObject

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_configObject

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

#loggerObject

Returns the value of attribute logger.



3
4
5
# File 'lib/master_data_tool/spec_config.rb', line 3

def logger
  @logger
end

#spec_nameObject

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_configObject

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

Yields:

  • (_self)

Yield Parameters:



15
16
17
# File 'lib/master_data_tool/spec_config.rb', line 15

def configure
  yield self
end