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.
12 13 14 15 16 |
# File 'lib/mac-wifi/base_model.rb', line 12 def initialize(exitstatus, command, text) @exitstatus = exitstatus @command = command @text = text end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
10 11 12 |
# File 'lib/mac-wifi/base_model.rb', line 10 def command @command end |
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
10 11 12 |
# File 'lib/mac-wifi/base_model.rb', line 10 def exitstatus @exitstatus end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
10 11 12 |
# File 'lib/mac-wifi/base_model.rb', line 10 def text @text end |