Class: RocketJob::Sliced::Writer::NullWriter
- Inherits:
-
Object
- Object
- RocketJob::Sliced::Writer::NullWriter
- Defined in:
- lib/rocket_job/sliced/writer/output.rb
Instance Attribute Summary collapse
-
#categorized_records ⇒ Object
readonly
Returns the value of attribute categorized_records.
-
#input_slice ⇒ Object
Returns the value of attribute input_slice.
-
#job ⇒ Object
readonly
Returns the value of attribute job.
Instance Method Summary collapse
- #<<(_) ⇒ Object
- #close ⇒ Object
-
#initialize(job, input_slice = nil) ⇒ NullWriter
constructor
A new instance of NullWriter.
Constructor Details
#initialize(job, input_slice = nil) ⇒ NullWriter
Returns a new instance of NullWriter.
66 67 68 69 70 |
# File 'lib/rocket_job/sliced/writer/output.rb', line 66 def initialize(job, input_slice = nil) @job = job @input_slice = input_slice @categorized_records = {} end |
Instance Attribute Details
#categorized_records ⇒ Object (readonly)
Returns the value of attribute categorized_records.
63 64 65 |
# File 'lib/rocket_job/sliced/writer/output.rb', line 63 def categorized_records @categorized_records end |
#input_slice ⇒ Object
Returns the value of attribute input_slice.
64 65 66 |
# File 'lib/rocket_job/sliced/writer/output.rb', line 64 def input_slice @input_slice end |
#job ⇒ Object (readonly)
Returns the value of attribute job.
63 64 65 |
# File 'lib/rocket_job/sliced/writer/output.rb', line 63 def job @job end |
Instance Method Details
#<<(_) ⇒ Object
72 73 74 |
# File 'lib/rocket_job/sliced/writer/output.rb', line 72 def <<(_) # noop end |
#close ⇒ Object
76 77 78 |
# File 'lib/rocket_job/sliced/writer/output.rb', line 76 def close # noop end |