Class: DumpCleaner::Cleanup::DataSourceSteps::Base
- Inherits:
-
Object
- Object
- DumpCleaner::Cleanup::DataSourceSteps::Base
- Extended by:
- Forwardable
- Defined in:
- lib/dump_cleaner/cleanup/data_source_steps/base.rb
Direct Known Subclasses
GroupByBytesize, InspectContext, LoadYamlFile, RemoveAccents
Instance Attribute Summary collapse
-
#step_context ⇒ Object
readonly
Returns the value of attribute step_context.
Instance Method Summary collapse
-
#initialize(step_context) ⇒ Base
constructor
A new instance of Base.
- #raise_params_error(error) ⇒ Object
Constructor Details
#initialize(step_context) ⇒ Base
Returns a new instance of Base.
15 16 17 |
# File 'lib/dump_cleaner/cleanup/data_source_steps/base.rb', line 15 def initialize(step_context) @step_context = step_context.dup end |
Instance Attribute Details
#step_context ⇒ Object (readonly)
Returns the value of attribute step_context.
13 14 15 |
# File 'lib/dump_cleaner/cleanup/data_source_steps/base.rb', line 13 def step_context @step_context end |
Instance Method Details
#raise_params_error(error) ⇒ Object
19 20 21 22 |
# File 'lib/dump_cleaner/cleanup/data_source_steps/base.rb', line 19 def raise_params_error(error) step = self.class.name.split("::").last raise ArgumentError, "Invalid data source step params: type=#{type}, step=#{step}: #{error}" end |