Class: LocalPac::Actions::ShowProcessInformation::IntegerPidInfo
- Inherits:
-
Object
- Object
- LocalPac::Actions::ShowProcessInformation::IntegerPidInfo
- Defined in:
- lib/local_pac/actions/show_process_information.rb
Instance Attribute Summary collapse
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(pid_info) ⇒ IntegerPidInfo
constructor
A new instance of IntegerPidInfo.
Constructor Details
#initialize(pid_info) ⇒ IntegerPidInfo
Returns a new instance of IntegerPidInfo.
9 10 11 12 13 |
# File 'lib/local_pac/actions/show_process_information.rb', line 9 def initialize(pid_info) @pid = pid_info.to_i @error_message = "Process \"#{@pid}\" cannot be found. It is not a running process." @error_occured = false end |
Instance Attribute Details
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
7 8 9 |
# File 'lib/local_pac/actions/show_process_information.rb', line 7 def @error_message end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
7 8 9 |
# File 'lib/local_pac/actions/show_process_information.rb', line 7 def pid @pid end |
Instance Method Details
#error? ⇒ Boolean
15 16 17 |
# File 'lib/local_pac/actions/show_process_information.rb', line 15 def error? @error_occured end |