Class: FireAndForget::Command::GetStatus
- Inherits:
-
CommandBase
- Object
- CommandBase
- FireAndForget::Command::GetStatus
- Defined in:
- lib/fire_and_forget/command/get_status.rb
Instance Attribute Summary
Attributes inherited from CommandBase
Instance Method Summary collapse
-
#initialize(task_name) ⇒ GetStatus
constructor
A new instance of GetStatus.
- #run ⇒ Object
Methods inherited from CommandBase
Constructor Details
#initialize(task_name) ⇒ GetStatus
Returns a new instance of GetStatus.
5 6 7 |
# File 'lib/fire_and_forget/command/get_status.rb', line 5 def initialize(task_name) @task_name = task_name.to_sym end |
Instance Method Details
#run ⇒ Object
9 10 11 |
# File 'lib/fire_and_forget/command/get_status.rb', line 9 def run FireAndForget::Server.status[@task_name] end |