class NRB::BreweryControlSystem::API::DeviceEndpoint

Public Class Methods

endpoint() click to toggle source
# File lib/brewery_control_system/api/3.7.0/device_endpoint.rb, line 6
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/device_endpoint.rb, line 13
def body_array
  super.map { |val| val.strip[/.+/m] }
end
parse() click to toggle source
# File lib/brewery_control_system/api/3.7.0/device_endpoint.rb, line 18
def parse
  return if body_text.nil?
  (device, version) = body_array[0].split(/\s+/)
  [ body_array[1], device, version, nil ]
end