Sha256: 7bf41c266452362f82840ba32ffbcb41bdf6dd1947e0fe6756dc5e56ee74469a
Contents?: true
Size: 322 Bytes
Versions: 2
Compression:
Stored size: 322 Bytes
Contents
# frozen_string_literal: true # BlacklightApiFacets class BlacklightApiFacets include HTTParty base_uri BLACKLIGHT_JSON_API_FACETS def fetch @fetch ||= self.class.get("/", query: {}) end def facets fetch["included"].filter_map { |s| s if s["type"] == "facet" } if fetch["included"].present? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geoblacklight_admin-0.1.0 | app/models/blacklight_api_facets.rb |
geoblacklight_admin-0.0.1 | app/models/blacklight_api_facets.rb |