class NRB::BreweryControlSystem::API::Sysname
Constants
- DESCRIPTIONS
Attributes
body_text[RW]
Public Class Methods
endpoint()
click to toggle source
# File lib/brewery_control_system/api/3.7.0/sysname.rb, line 8 def endpoint; 'sysname.dat'; end
Public Instance Methods
descriptions()
click to toggle source
# File lib/brewery_control_system/api/3.7.0/sysname.rb, line 220 def descriptions; DESCRIPTIONS; end
Private Instance Methods
body_array()
click to toggle source
Calls superclass method
# File lib/brewery_control_system/api/3.7.0/sysname.rb, line 232 def body_array super.map { |str| str.strip[/.+/m] } end
parse()
click to toggle source
# File lib/brewery_control_system/api/3.7.0/sysname.rb, line 237 def parse raise "Stop using this" return if body_text.nil? body_array.each_with_index.inject({}) do |hash,(body,i)| hash[descriptions[i]] = body_array[i] hash end end