Class: UINotifications::Tasks::Base
- Inherits:
-
Base
- Object
- Base
- UINotifications::Tasks::Base
- Defined in:
- app/services/ui_notifications/tasks.rb
Instance Method Summary collapse
-
#initialize(task) ⇒ Base
constructor
A new instance of Base.
- #initiator ⇒ Object
- #troubleshooting_help_generator ⇒ Object
Constructor Details
#initialize(task) ⇒ Base
Returns a new instance of Base.
4 5 6 |
# File 'app/services/ui_notifications/tasks.rb', line 4 def initialize(task) @subject = @task = task end |
Instance Method Details
#initiator ⇒ Object
8 9 10 |
# File 'app/services/ui_notifications/tasks.rb', line 8 def initiator User.anonymous_admin end |
#troubleshooting_help_generator ⇒ Object
12 13 14 15 16 17 |
# File 'app/services/ui_notifications/tasks.rb', line 12 def troubleshooting_help_generator return @troubleshooting_help_generator if defined? @troubleshooting_help_generator @troubleshooting_help_generator = if @task.main_action ForemanTasks::TroubleshootingHelpGenerator.new(@task.main_action) end end |