Exception: Process::Naf::Application::TerminationRequest
- Inherits:
-
StandardError
- Object
- StandardError
- Process::Naf::Application::TerminationRequest
- Defined in:
- app/models/process/naf/application.rb
Instance Attribute Summary collapse
-
#job ⇒ Object
readonly
Returns the value of attribute job.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(job, reason) ⇒ TerminationRequest
constructor
A new instance of TerminationRequest.
Constructor Details
#initialize(job, reason) ⇒ TerminationRequest
Returns a new instance of TerminationRequest.
7 8 9 10 11 |
# File 'app/models/process/naf/application.rb', line 7 def initialize(job, reason) @job = job @reason = reason super("Requested to terminate by Naf: #{reason}") end |
Instance Attribute Details
#job ⇒ Object (readonly)
Returns the value of attribute job.
6 7 8 |
# File 'app/models/process/naf/application.rb', line 6 def job @job end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
6 7 8 |
# File 'app/models/process/naf/application.rb', line 6 def reason @reason end |