Sha256: acf5c7fecd97028329e7fb8c5b1b5993ab2a0652a7bd99fa1b28244e7db19f2c

Contents?: true

Size: 332 Bytes

Versions: 8

Compression:

Stored size: 332 Bytes

Contents

module Rasti
  module DB
    class ComputedAttribute

      attr_reader :identifier

      def initialize(identifier, &join)
        @identifier = identifier
        @join = join
      end

      def apply_join(dataset)
        join ? join.call(dataset) : dataset
      end

      private

      attr_reader :join

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rasti-db-4.0.0 lib/rasti/db/computed_attribute.rb
rasti-db-3.0.0 lib/rasti/db/computed_attribute.rb
rasti-db-2.3.3 lib/rasti/db/computed_attribute.rb
rasti-db-2.3.2 lib/rasti/db/computed_attribute.rb
rasti-db-2.3.1 lib/rasti/db/computed_attribute.rb
rasti-db-2.3.0 lib/rasti/db/computed_attribute.rb
rasti-db-2.2.0 lib/rasti/db/computed_attribute.rb
rasti-db-2.1.0 lib/rasti/db/computed_attribute.rb