Method: Moob::Pec#pstatus

Defined in:
lib/moob/pec.rb

#pstatusObject



111
112
113
114
115
116
117
118
119
120
# File 'lib/moob/pec.rb', line 111

def pstatus
  case get_infos(['pwState'])['pwState']
  when '0'
    return :off
  when '1'
    return :on
  else
    return nil
  end
end