Sha256: d7641337c1bad9364b205f7289b19feebbd188f2b0a59d1d06cdcfd743e0c8ae

Contents?: true

Size: 362 Bytes

Versions: 43

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

module ErpIntegration
  module Fulfil
    class OrClause
      LOGIC_OPERATOR = 'OR'

      def initialize(where_clauses:)
        @where_clauses = where_clauses
      end

      def to_filter
        return [] unless @where_clauses.any?

        @where_clauses.map(&:to_filter).unshift(LOGIC_OPERATOR)
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
erp_integration-0.61.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.58.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.60.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.59.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.57.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.56.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.55.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.54.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.53.1 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.53.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.52.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.50.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.49.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.48.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.43.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.42.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.41.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.40.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.39.0 lib/erp_integration/fulfil/or_clause.rb
erp_integration-0.38.0 lib/erp_integration/fulfil/or_clause.rb