Sha256: 7e4b606023bfe994825895b4039988020e666179ce55b74fb981cdc0098950fd

Contents?: true

Size: 273 Bytes

Versions: 7

Compression:

Stored size: 273 Bytes

Contents

module RequestHandler
  module Validation
    class Result
      attr_accessor :errors, :output

      def initialize(errors:, output:)
        self.errors = errors
        self.output = output
      end

      def valid?
        errors.empty?
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
request_handler-2.3.0 lib/request_handler/validation/result.rb
request_handler-2.2.0 lib/request_handler/validation/result.rb
request_handler-2.1.1 lib/request_handler/validation/result.rb
request_handler-2.1.0 lib/request_handler/validation/result.rb
request_handler-2.0.0 lib/request_handler/validation/result.rb
request_handler-1.3.0 lib/request_handler/validation/result.rb
request_handler-1.2.0 lib/request_handler/validation/result.rb