Exception: MacWifi::BaseModel::OsCommandError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/mac-wifi/base_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject (readonly)

Returns the value of attribute command.



10
11
12
# File 'lib/mac-wifi/base_model.rb', line 10

def command
  @command
end

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



10
11
12
# File 'lib/mac-wifi/base_model.rb', line 10

def exitstatus
  @exitstatus
end

#textObject (readonly)

Returns the value of attribute text.



10
11
12
# File 'lib/mac-wifi/base_model.rb', line 10

def text
  @text
end