Class: Remi::Loader::SubJob
- Inherits:
-
Remi::Loader
- Object
- Remi::Loader
- Remi::Loader::SubJob
- Defined in:
- lib/remi/data_subjects/sub_job.rb
Instance Attribute Summary collapse
-
#data_subject ⇒ Object
Returns the value of attribute data_subject.
-
#merge_fields ⇒ Object
Returns the value of attribute merge_fields.
-
#sub_job ⇒ Object
Returns the value of attribute sub_job.
Attributes inherited from Remi::Loader
Instance Method Summary collapse
- #autoload ⇒ Object
-
#initialize(*args, **kargs, &block) ⇒ SubJob
constructor
A new instance of SubJob.
-
#load(data_frame) ⇒ true
On success.
Methods inherited from Remi::Loader
Constructor Details
#initialize(*args, **kargs, &block) ⇒ SubJob
Returns a new instance of SubJob.
32 33 34 35 |
# File 'lib/remi/data_subjects/sub_job.rb', line 32 def initialize(*args, **kargs, &block) super init_sub_job_loader(*args, **kargs, &block) end |
Instance Attribute Details
#data_subject ⇒ Object
Returns the value of attribute data_subject.
37 38 39 |
# File 'lib/remi/data_subjects/sub_job.rb', line 37 def data_subject @data_subject end |
#merge_fields ⇒ Object
Returns the value of attribute merge_fields.
37 38 39 |
# File 'lib/remi/data_subjects/sub_job.rb', line 37 def merge_fields @merge_fields end |
#sub_job ⇒ Object
Returns the value of attribute sub_job.
37 38 39 |
# File 'lib/remi/data_subjects/sub_job.rb', line 37 def sub_job @sub_job end |
Instance Method Details
#autoload ⇒ Object
47 48 49 |
# File 'lib/remi/data_subjects/sub_job.rb', line 47 def autoload true end |
#load(data_frame) ⇒ true
Returns On success.
41 42 43 44 45 |
# File 'lib/remi/data_subjects/sub_job.rb', line 41 def load(data_frame) sub_job.sub_job.send(data_subject).df = data_frame sub_job.sub_job.send(data_subject).fields.merge! fields if merge_fields true end |