def errors
      return [] if success?
      @errors ||= Array.wrap(response[:errors]).map do |error|
        ErrorResult.new(error[:error])
      end
    end
def errors
      return [] if success?
      @errors ||= Array.wrap(response[:errors]).map do |error|
        ErrorResult.new(error[:error])
      end
    end
An array of +ErrorResult+ items or an empty array if the response was
 successful.

   result.errors.each do |error|
     puts "#{error.message} [#error.key]"
   end