Sha256: 3d99035db20f7951d37064e3e2b4a0491b2e4df94cb8a87833efb4a9f2544b4f

Contents?: true

Size: 239 Bytes

Versions: 50

Compression:

Stored size: 239 Bytes

Contents

require 'actv/base'
require 'actv/facet_term'

module ACTV
  class Facet < ACTV::Base
    attr_reader :name

    def terms
      @terms ||= Array(@attrs[:terms]).map do |term|
        ACTV::FacetTerm.new(term)
      end
    end

  end

end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
actv-2.10.9 lib/actv/facet.rb
actv-2.10.8 lib/actv/facet.rb
actv-2.10.7 lib/actv/facet.rb
actv-2.10.6 lib/actv/facet.rb
actv-2.10.5 lib/actv/facet.rb
actv-2.10.4 lib/actv/facet.rb
actv-2.10.3 lib/actv/facet.rb
actv-2.10.2 lib/actv/facet.rb
actv-2.10.1 lib/actv/facet.rb
actv-2.10.0 lib/actv/facet.rb
actv-2.9.2 lib/actv/facet.rb
actv-2.9.1 lib/actv/facet.rb
actv-2.9.0 lib/actv/facet.rb
actv-2.8.2 lib/actv/facet.rb
actv-2.8.1 lib/actv/facet.rb
actv-2.7.0 lib/actv/facet.rb
actv-2.6.0 lib/actv/facet.rb
actv-2.5.2 lib/actv/facet.rb
actv-2.5.1 lib/actv/facet.rb
actv-2.5.0 lib/actv/facet.rb