Sha256: 7fc0d5851be6bc63a192462d9509985c11753eb55943f988d12627b8238d4aeb
Contents?: true
Size: 244 Bytes
Versions: 1
Compression:
Stored size: 244 Bytes
Contents
module Inquisitio class Facets extend Forwardable def initialize(facets) @facets = 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.0 | lib/inquisitio/facets.rb |