Sha256: fde6796e2ccbbf1c9d640e6accde181ee62e89639841773a1192dc6b83bee8f1

Contents?: true

Size: 424 Bytes

Versions: 6

Compression:

Stored size: 424 Bytes

Contents

module RecordFilter
  module DSL
    class JoinCondition

      attr_reader :restriction

      def initialize(column, value)
        @column = column
        if column.is_a?(Hash) && value == Restriction::DEFAULT_VALUE
          @condition = column
        else
          @restriction = Restriction.new(column, value)
        end
      end

      def condition
        @condition || restriction
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
aub-record_filter-0.1.4 lib/record_filter/dsl/join_condition.rb
aub-record_filter-0.2.0 lib/record_filter/dsl/join_condition.rb
aub-record_filter-0.6.0 lib/record_filter/dsl/join_condition.rb
outoftime-record_filter-0.1.4 lib/record_filter/dsl/join_condition.rb
outoftime-record_filter-0.2.0 lib/record_filter/dsl/join_condition.rb
outoftime-record_filter-0.6.0 lib/record_filter/dsl/join_condition.rb