Sha256: 7b97dda4ea54673644f98a5b39ead2461ff94784bf180b99e9b63a9584134e01
Contents?: true
Size: 263 Bytes
Versions: 1
Compression:
Stored size: 263 Bytes
Contents
module Inquisitio class Facets extend Forwardable def initialize(facets) @facets = facets.nil? ? {} : JSON.parse(facets.to_json, symbolize_names: true) end def fields @facets.keys end def_delegator :@facets, :[] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inquisitio-2.1.1 | lib/inquisitio/facets.rb |