Sha256: 137ed9f9efcbcce634d59019a41db9b1413b34eecf8797719f9dc48e09b6062d

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

require 'request_handler/builder/base'

module RequestHandler
  module Builder
    class IncludeOptionsBuilder < Base
      IncludeOptions = Struct.new(:allowed, :defaults)

      def create_klass_struct
        @result = IncludeOptions.new
      end

      def allowed(value)
        @result.allowed = value
      end

      def defaults(value)
        @result.defaults = value
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
request_handler-2.3.0 lib/request_handler/builder/include_options_builder.rb
request_handler-2.2.0 lib/request_handler/builder/include_options_builder.rb
request_handler-2.1.1 lib/request_handler/builder/include_options_builder.rb
request_handler-2.1.0 lib/request_handler/builder/include_options_builder.rb
request_handler-2.0.0 lib/request_handler/builder/include_options_builder.rb