class Bcx::ResponseError
Public Instance Methods
errors()
click to toggle source
# File lib/bcx/response_error.rb, line 24 def errors return body if body.kind_of?(String) messages = [] body.each_pair do |attribute, msgs| if msgs.respond_to? :each msgs.each { |msg| messages.push "#{attribute} #{msg}" } else messages.push "#{attribute} #{msgs.to_s}" end end messages.join(', ') end