Sha256: 11b3f4d6fa87fbd82754ac6336cc1978a4e84a8b6ac24754c5e3dc2528f28a7b

Contents?: true

Size: 428 Bytes

Versions: 14

Compression:

Stored size: 428 Bytes

Contents

module Access
  class Aggregations
    include Access::MuchMeta

    def self.process_batch(chunk)
      chunk.map { |aggs| new(aggs) }
    end

    def initialize(values)
      @used_fields = []
      set_up_methods(values)
      set_values(values)
      @subcategories = Access::Category.process_batch(@subcategories) if @subcategories
      @facets = Access::Aggregations.process_batch(@facets) if @facets
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
access-2.3.0.pre.rc2 lib/access/aggregations.rb
access-2.3.0.pre.rc1 lib/access/aggregations.rb
access-2.2.0 lib/access/aggregations.rb
access-2.1.5 lib/access/aggregations.rb
access-2.1.4 lib/access/aggregations.rb
access-2.1.3 lib/access/aggregations.rb
access-2.1.2 lib/access/aggregations.rb
access-2.1.1 lib/access/aggregations.rb
access-2.1.0 lib/access/aggregations.rb
access-2.0.55 lib/access/aggregations.rb
access-2.0.54 lib/access/aggregations.rb
access-2.0.53 lib/access/aggregations.rb
access-2.0.52 lib/access/aggregations.rb
access-2.0.51 lib/access/aggregations.rb