Class: Libis::Workflow::Job

Inherits:
Object
  • Object
show all
Includes:
Base::Job
Defined in:
lib/libis/workflow/job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Base::Job

#configure, #execute, #run_name

Constructor Details

#initializeJob

Returns a new instance of Job.



13
14
15
16
17
18
19
# File 'lib/libis/workflow/job.rb', line 13

def initialize
  @name = ''
  @description = ''
  @input = Hash.new
  @workflow = ::Libis::Workflow::Workflow.new
  @run_object = ::Libis::Workflow::Run.new
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



11
12
13
# File 'lib/libis/workflow/job.rb', line 11

def description
  @description
end

#inputObject

Returns the value of attribute input.



11
12
13
# File 'lib/libis/workflow/job.rb', line 11

def input
  @input
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/libis/workflow/job.rb', line 11

def name
  @name
end

#run_objectObject

Returns the value of attribute run_object.



11
12
13
# File 'lib/libis/workflow/job.rb', line 11

def run_object
  @run_object
end

#workflowObject

Returns the value of attribute workflow.



11
12
13
# File 'lib/libis/workflow/job.rb', line 11

def workflow
  @workflow
end

Instance Method Details

#loggerObject



21
22
23
# File 'lib/libis/workflow/job.rb', line 21

def logger
  ::Libis::Workflow::Config.logger
end