Sha256: 34112505712954d60676e219ef25dddf296ccc42534fc927b363fbd6be7e2bce
Contents?: true
Size: 538 Bytes
Versions: 9
Compression:
Stored size: 538 Bytes
Contents
module Quandl module Command class Presenter class << self def pretty_errors(messages) result = [] re = messages.delete(:response_errors) if messages.is_a?(Hash) && messages.has_key?(:response_errors) re.each{|k,v| messages[k] = v } if re.present? && re.is_a?(Hash) # format messages.each do |k,v| v = v.join(" & ") if v.respond_to?(:join) result << "#{k}: #{v}" end result.join(", ") end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems