lib/gqli/response.rb
# Accepts Hash or Array of errors and converts them to Hashie::Mash instances.
# Recursively calls #parse_errors with items if array.
# Returns nil if nil is passed.
Accepts Hash or Array of errors and converts them to Hashie::Mash instances.
Recursively calls #parse_errors with items if array.
Returns nil if nil is passed.
Accepts Hash or Array of errors and converts them to Hashie :: Mash instances . Recursively calls #parse_errors with items if array . Returns nil if nil is passed .
def parse_errors(errors)
      return unless errors
      return errors.map { |e| parse_errors(e) } if errors.is_a?(Array)
      Hashie::Mash.new(errors)
    end
def parse_errors ( errors ) return unless errors return errors . map { | e | parse_errors ( e ) } if errors . is_a? ( Array ) Hashie :: Mash . new ( errors ) end
Accepts Hash or Array of errors and converts them to Hashie::Mash instances.
Accepts Hash or Array of errors and converts them to Hashie :: Mash instances .
errors