Class: Scheduler::MessageTask
Overview
Describe a Task that send a message to a specific object
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Name that describe the task.
-
#priority ⇒ Integer
readonly
Priority of the task.
Instance Method Summary collapse
-
#initialize(name, priority, object, message) ⇒ MessageTask
constructor
Initialize a MessageTask with its name, priority, the object and the message to send.
-
#start
Send the message to the object.
Constructor Details
#initialize(name, priority, object, message) ⇒ MessageTask
Initialize a MessageTask with its name, priority, the object and the message to send
215 216 |
# File 'docs/0_Dependencies.rb', line 215 def initialize(name, priority, object, ) end |
Instance Attribute Details
#name ⇒ String (readonly)
Name that describe the task
209 210 211 |
# File 'docs/0_Dependencies.rb', line 209 def name @name end |
#priority ⇒ Integer (readonly)
Priority of the task
206 207 208 |
# File 'docs/0_Dependencies.rb', line 206 def priority @priority end |
Instance Method Details
#start
Send the message to the object
218 219 |
# File 'docs/0_Dependencies.rb', line 218 def start end |