Exception: MacWifi::BaseModel::OsCommandError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- MacWifi::BaseModel::OsCommandError
- Defined in:
- lib/mac-wifi/base_model.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(exitstatus, command, text) ⇒ OsCommandError
constructor
A new instance of OsCommandError.
Constructor Details
#initialize(exitstatus, command, text) ⇒ OsCommandError
Returns a new instance of OsCommandError.
11 12 13 14 15 |
# File 'lib/mac-wifi/base_model.rb', line 11 def initialize(exitstatus, command, text) @exitstatus = exitstatus @command = command @text = text end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
9 10 11 |
# File 'lib/mac-wifi/base_model.rb', line 9 def command @command end |
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
9 10 11 |
# File 'lib/mac-wifi/base_model.rb', line 9 def exitstatus @exitstatus end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
9 10 11 |
# File 'lib/mac-wifi/base_model.rb', line 9 def text @text end |