class NRB::BreweryControlSystem::API::BCSSys

Constants

DESCRIPTIONS

Public Class Methods

endpoint() click to toggle source
# File lib/brewery_control_system/api/3.7.0/bcs_sys.rb, line 9
def endpoint; 'bcs_sys.cfg'; end

Private Instance Methods

body_array() click to toggle source
Calls superclass method
# File lib/brewery_control_system/api/3.7.0/bcs_sys.rb, line 142
def body_array
  super.map { |val| val.strip[/.+/m] }
end
parse() click to toggle source
# File lib/brewery_control_system/api/3.7.0/bcs_sys.rb, line 147
    def parse
raise "Stop using this"
      return if body_text.nil?
body_array[0..55] + body_array[248..252].map { |i| i.to_f / 10.0 }
#      body_array.each_with_index.inject({}) do |hash,(body,i)|
#        hash[descriptions[i]] = body_array[i]
#        hash
#      end
    end