Class: Burner::JobWithDynamicKeys
- Inherits:
-
JobWithRegister
- Object
- Job
- JobWithRegister
- Burner::JobWithDynamicKeys
- Defined in:
- lib/burner/job_with_dynamic_keys.rb
Overview
Add on a register attribute to the configuration for a job. This indicates that a job either accesses and/or mutates the payload’s registers.
Direct Known Subclasses
Library::Collection::FlatFileParse, Library::Collection::OnlyKeys
Constant Summary
Constants inherited from JobWithRegister
Burner::JobWithRegister::BLANK
Instance Attribute Summary collapse
-
#key_mappings ⇒ Object
readonly
Returns the value of attribute key_mappings.
-
#keys_register ⇒ Object
readonly
Returns the value of attribute keys_register.
-
#resolver ⇒ Object
readonly
Returns the value of attribute resolver.
Attributes inherited from JobWithRegister
Attributes inherited from Job
Instance Method Summary collapse
-
#initialize(keys_register:, name: '', register: DEFAULT_REGISTER, separator: BLANK, key_mappings: []) ⇒ JobWithDynamicKeys
constructor
A new instance of JobWithDynamicKeys.
Methods inherited from Job
Methods included from Util::Arrayable
Constructor Details
#initialize(keys_register:, name: '', register: DEFAULT_REGISTER, separator: BLANK, key_mappings: []) ⇒ JobWithDynamicKeys
Returns a new instance of JobWithDynamicKeys.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/burner/job_with_dynamic_keys.rb', line 20 def initialize( keys_register:, name: '', register: DEFAULT_REGISTER, separator: BLANK, key_mappings: [] ) super(name: name, register: register) @key_mappings = Modeling::KeyMapping.array(key_mappings) @keys_register = keys_register.to_s @resolver = Objectable.resolver(separator: separator) freeze end |
Instance Attribute Details
#key_mappings ⇒ Object (readonly)
Returns the value of attribute key_mappings.
16 17 18 |
# File 'lib/burner/job_with_dynamic_keys.rb', line 16 def key_mappings @key_mappings end |
#keys_register ⇒ Object (readonly)
Returns the value of attribute keys_register.
16 17 18 |
# File 'lib/burner/job_with_dynamic_keys.rb', line 16 def keys_register @keys_register end |
#resolver ⇒ Object (readonly)
Returns the value of attribute resolver.
16 17 18 |
# File 'lib/burner/job_with_dynamic_keys.rb', line 16 def resolver @resolver end |