Class: RocketJob::Sliced::Writer::Null

Inherits:
Object
  • Object
show all
Defined in:
lib/rocket_job/sliced/writer/output.rb

Direct Known Subclasses

Output

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(job, input_slice: nil, append: false) ⇒ Null

Returns a new instance of Null.



8
9
10
11
12
13
# File 'lib/rocket_job/sliced/writer/output.rb', line 8

def initialize(job, input_slice: nil, append: false)
  @job                 = job
  @input_slice         = input_slice
  @categorized_records = {}
  @append              = append
end

Instance Attribute Details

#appendObject

Returns the value of attribute append.



6
7
8
# File 'lib/rocket_job/sliced/writer/output.rb', line 6

def append
  @append
end

#categorized_recordsObject (readonly)

Returns the value of attribute categorized_records.



5
6
7
# File 'lib/rocket_job/sliced/writer/output.rb', line 5

def categorized_records
  @categorized_records
end

#input_sliceObject

Returns the value of attribute input_slice.



6
7
8
# File 'lib/rocket_job/sliced/writer/output.rb', line 6

def input_slice
  @input_slice
end

#jobObject (readonly)

Returns the value of attribute job.



5
6
7
# File 'lib/rocket_job/sliced/writer/output.rb', line 5

def job
  @job
end

Instance Method Details

#<<(_) ⇒ Object



15
16
17
# File 'lib/rocket_job/sliced/writer/output.rb', line 15

def <<(_)
  # noop
end

#closeObject



19
20
21
# File 'lib/rocket_job/sliced/writer/output.rb', line 19

def close
  # noop
end