Sha256: 67d89219525fcb684f75dd0368c25db7ad7710b14360430f5c255f59c1346c2b
Contents?: true
Size: 370 Bytes
Versions: 1
Compression:
Stored size: 370 Bytes
Contents
require_relative "../result" class Skala::Adapter::Search::Result::Facet include Virtus.model attribute :type, String, default: -> (instance, _) do class_name = instance.class.to_s.demodulize.underscore if (splitted_class_name = class_name.split("_")).last == "facet" splitted_class_name[0..-2].join("_") else class_name end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skala-1.1.0 | lib/skala/adapter/search/result/facet.rb |