Class: Interface::JobsWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/interface/interface.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ JobsWrapper

Returns a new instance of JobsWrapper.



43
44
45
46
47
# File 'lib/interface/interface.rb', line 43

def initialize(params)
  params.each do |key, value|
    instance_variable_set("@#{key}", value)
  end
end

Instance Attribute Details

#handlerObject

Returns the value of attribute handler.



41
42
43
# File 'lib/interface/interface.rb', line 41

def handler
  @handler
end

#jobObject

Returns the value of attribute job.



41
42
43
# File 'lib/interface/interface.rb', line 41

def job
  @job
end