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