Sha256: 0f918a997ed7fddf60cc6ab05236fe4250e3f69adfe6f7af70d76dfd3d078b0e

Contents?: true

Size: 609 Bytes

Versions: 5

Compression:

Stored size: 609 Bytes

Contents

# frozen_string_literal: true

require 'request_handler/builder/base'

module RequestHandler
  module Builder
    class FilterBuilder < Base
      Filter = Struct.new(:schema, :additional_url_filter, :options, :defaults)

      def create_klass_struct
        @result = Filter.new
      end

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

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

      def options(value)
        @result.options = 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/filter_builder.rb
request_handler-2.2.0 lib/request_handler/builder/filter_builder.rb
request_handler-2.1.1 lib/request_handler/builder/filter_builder.rb
request_handler-2.1.0 lib/request_handler/builder/filter_builder.rb
request_handler-2.0.0 lib/request_handler/builder/filter_builder.rb