Sha256: 5f3811c4c01f79587da6168e014cc6d1c7e2de7be7aec14d8846e6cc50701542

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

require 'request_handler/builder/base'

module RequestHandler
  module Builder
    class QueryBuilder < Base
      Query = Struct.new(:schema, :options)

      def create_klass_struct
        @result = Query.new
      end

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

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