Sha256: 87630c9614384857e1ec5bbd28c32cd5ab24e7a69cae01bb42c56dcba893de46

Contents?: true

Size: 501 Bytes

Versions: 6

Compression:

Stored size: 501 Bytes

Contents

module RecordFilter
  module DSL
    class ClassJoin
      attr_reader :join_class, :join_type, :table_alias, :conjunction

      def initialize(join_class, join_type, table_alias, conjunction, join_conditions)
        @join_class, @join_type, @table_alias, @conjunction, @join_conditions = 
          join_class, join_type, table_alias, conjunction, join_conditions
      end

      def conditions
        @join_conditions ? @join_conditions.map { |c| c.condition } : nil
      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/class_join.rb
aub-record_filter-0.2.0 lib/record_filter/dsl/class_join.rb
aub-record_filter-0.6.0 lib/record_filter/dsl/class_join.rb
outoftime-record_filter-0.1.4 lib/record_filter/dsl/class_join.rb
outoftime-record_filter-0.2.0 lib/record_filter/dsl/class_join.rb
outoftime-record_filter-0.6.0 lib/record_filter/dsl/class_join.rb