Class: Interface::JobsWrapper
- Inherits:
-
Object
- Object
- Interface::JobsWrapper
- Defined in:
- lib/interface/interface.rb
Instance Attribute Summary collapse
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#job ⇒ Object
Returns the value of attribute job.
Instance Method Summary collapse
-
#initialize(params) ⇒ JobsWrapper
constructor
A new instance of JobsWrapper.
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
#handler ⇒ Object
Returns the value of attribute handler.
41 42 43 |
# File 'lib/interface/interface.rb', line 41 def handler @handler end |
#job ⇒ Object
Returns the value of attribute job.
41 42 43 |
# File 'lib/interface/interface.rb', line 41 def job @job end |