Class: FireAndForget::TaskDescription
- Inherits:
-
Object
- Object
- FireAndForget::TaskDescription
- Defined in:
- lib/fire_and_forget/task_description.rb
Instance Attribute Summary collapse
-
#binary ⇒ Object
readonly
Returns the value of attribute binary.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#niceness ⇒ Object
readonly
Returns the value of attribute niceness.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(name, path_to_binary, niceness = 0, default_parameters = {}, env = {}) ⇒ TaskDescription
constructor
A new instance of TaskDescription.
Constructor Details
#initialize(name, path_to_binary, niceness = 0, default_parameters = {}, env = {}) ⇒ TaskDescription
Returns a new instance of TaskDescription.
7 8 9 |
# File 'lib/fire_and_forget/task_description.rb', line 7 def initialize(name, path_to_binary, niceness=0, default_parameters={}, env={}) @name, @binary, @params, @niceness, @env = name, path_to_binary, default_parameters, niceness, env end |
Instance Attribute Details
#binary ⇒ Object (readonly)
Returns the value of attribute binary.
5 6 7 |
# File 'lib/fire_and_forget/task_description.rb', line 5 def binary @binary end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
5 6 7 |
# File 'lib/fire_and_forget/task_description.rb', line 5 def env @env end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/fire_and_forget/task_description.rb', line 5 def name @name end |
#niceness ⇒ Object (readonly)
Returns the value of attribute niceness.
5 6 7 |
# File 'lib/fire_and_forget/task_description.rb', line 5 def niceness @niceness end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
5 6 7 |
# File 'lib/fire_and_forget/task_description.rb', line 5 def params @params end |