lib/cotcube-level/helpers.rb
# human readable output
# please note the format must be given, that should be taken from :sym
human readable output
please note the format must be given, that should be taken from :sym
human readable output please note the format must be given that should be taken from : sym
def member_to_human(member,side: ,format:, daily: false, tws: false)
      high = (side == :upper)
      "#{                         member[:datetime].strftime("%a, %Y-%m-%d#{daily ? "" :" %I:%M%p"}")
        }  x: #{format '%-4d',    member[:x]
        } dx: #{format '%-8.3f', (member[:dx].nil? ? member[:x] : member[:dx].round(3))
            } #{high ? "high" : "low"
           }: #{format format,    member[high ? :high : :low]
         } i: #{(format '%4d',    member[:i]) unless member[:i].nil?
         } d: #{format '%6.2f',   member[:dev] unless member[:dev].nil?
            } #{member[:near].nil? ? '' : "near: #{member[:near]}"
         }"
    end
def member_to_human ( member , side : , format : , daily : false , tws : false ) high = ( side == :upper ) "#{                         member[:datetime].strftime("%a, %Y-%m-%d#{daily ? "" :" %I:%M%p"}")
        }  x: #{format '%-4d',    member[:x]
        } dx: #{format '%-8.3f', (member[:dx].nil? ? member[:x] : member[:dx].round(3))
            } #{high ? "high" : "low"
           }: #{format format,    member[high ? :high : :low]
         } i: #{(format '%4d',    member[:i]) unless member[:i].nil?
         } d: #{format '%6.2f',   member[:dev] unless member[:dev].nil?
            } #{member[:near].nil? ? '' : "near: #{member[:near]}"
         }" end
human readable output
please note the format must be given, that should be taken from :sym
human readable output please note the format must be given that should be taken from : sym
member
<not_specific>
side
<not_specific>
format
<not_specific>
daily
<not_specific>
tws
<not_specific>