Class: Scheduler::MessageTask

Inherits:
Object
  • Object
show all
Defined in:
docs/0_Dependencies.rb

Overview

Describe a Task that send a message to a specific object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, priority, object, message) ⇒ MessageTask

Initialize a MessageTask with its name, priority, the object and the message to send

Parameters:

  • name (String)

    name that describe the task

  • priority (Integer)

    the priority of the task

  • object (Object)

    the object that receive the message

  • message (Array<Symbol, *args>)

    the message to send



215
216
# File 'docs/0_Dependencies.rb', line 215

def initialize(name, priority, object, message)
end

Instance Attribute Details

#nameString (readonly)

Name that describe the task

Returns:



209
210
211
# File 'docs/0_Dependencies.rb', line 209

def name
  @name
end

#priorityInteger (readonly)

Priority of the task

Returns:

  • (Integer)


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