class WifiWand::BaseModel::OsCommandError

Attributes

command[R]
exitstatus[R]
text[R]

Public Class Methods

new(exitstatus, command, text) click to toggle source
# File lib/wifi-wand/models/base_model.rb, line 18
def initialize(exitstatus, command, text)
  @exitstatus = exitstatus
  @command = command
  @text = text
end

Public Instance Methods

to_h() click to toggle source
# File lib/wifi-wand/models/base_model.rb, line 28
def to_h
  { exitstatus: exitstatus, command: command, text: text }
end
to_s() click to toggle source
# File lib/wifi-wand/models/base_model.rb, line 24
def to_s
  "#{self.class.name}: Error code #{exitstatus}, command = #{command}, text = #{text}"
end