Sha256: e65513231bb1b37e59b2c56b06f197a24f8d59de03475579f48dafaa3423c130

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

module Lite
  module Query
    class Base

      attr_accessor :relation
      attr_reader :args

      def initialize(relation = nil, args = {})
        @relation = relation
        @args = args
      end

      class << self

        def call(relation = nil, args = {})
          klass = new(relation, args)
          klass.call
        end

      end

      def call
        raise NotImplementedError
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lite-query-1.2.0 lib/lite/query/base.rb