class GraphQL::Client::Errors
def each
field has more than one error message, yields once for each error
messages hash. Yields the field and the error for that attribute. If the
Public: Iterates through each error key, value pair in the error
def each return enum_for(:each) unless block_given? messages.each_key do |field| messages[field].each { |error| yield field, error } end end