Class: Burner::JobWithRegister
- Defined in:
- lib/burner/job_with_register.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
JobWithDynamicKeys, Library::Collection::ArraysToObjects, Library::Collection::Coalesce, Library::Collection::Graph, Library::Collection::Group, Library::Collection::NestedAggregate, Library::Collection::Number, Library::Collection::ObjectsToArrays, Library::Collection::Pivot, Library::Collection::Shift, Library::Collection::Transform, Library::Collection::Unpivot, Library::Collection::Unshift, Library::Collection::Validate, Library::Collection::Values, Library::Collection::Zip, Library::Compress::RowReader, Library::Deserialize::Csv, Library::Deserialize::Json, Library::Deserialize::Yaml, Library::IO::OpenFileBase, Library::IO::RowReader, Library::Param::Base, Library::Serialize::Csv, Library::Serialize::Json, Library::Serialize::Yaml, Library::Value::Nest, Library::Value::Static, Library::Value::Transform
Constant Summary collapse
- BLANK =
''
Instance Attribute Summary collapse
-
#register ⇒ Object
readonly
Returns the value of attribute register.
Attributes inherited from Job
Instance Method Summary collapse
-
#initialize(name: '', register: DEFAULT_REGISTER) ⇒ JobWithRegister
constructor
A new instance of JobWithRegister.
Methods inherited from Job
Methods included from Util::Arrayable
Constructor Details
#initialize(name: '', register: DEFAULT_REGISTER) ⇒ JobWithRegister
Returns a new instance of JobWithRegister.
20 21 22 23 24 |
# File 'lib/burner/job_with_register.rb', line 20 def initialize(name: '', register: DEFAULT_REGISTER) super(name: name) @register = register.to_s end |
Instance Attribute Details
#register ⇒ Object (readonly)
Returns the value of attribute register.
18 19 20 |
# File 'lib/burner/job_with_register.rb', line 18 def register @register end |