Module: Neptune

Included in:
Aq::Controllers::Apex, Aq::Controllers::Aquacontroller
Defined in:
lib/aq/manufacturers/neptune.rb

Instance Method Summary collapse

Instance Method Details

#parse_status(raw_status) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/aq/manufacturers/neptune.rb', line 6

def parse_status(raw_status)
  parsed_status = Nokogiri::XML raw_status
  aq_status = {:general => read_general(parsed_status), :probes => read_probes(parsed_status), 
               :outlets => read_outlets(parsed_status), :power => read_power(parsed_status)}
  
  return aq_status
end

#status_pageObject



2
3
4
# File 'lib/aq/manufacturers/neptune.rb', line 2

def status_page
  'cgi-bin/status.xml'
end