Sha256: f19fc172b81809451639b66b866d270d41f6bd7aa75f929763fc3720186f9e75
Contents?: true
Size: 421 Bytes
Versions: 25
Compression:
Stored size: 421 Bytes
Contents
# frozen_string_literal: true class SolrHit < Delegator def __getobj__ @document # return object we are delegating to, required end alias static_config __getobj__ def __setobj__(obj) @document = obj end attr_reader :document def initialize(document) document = document.with_indifferent_access super @document = document end def id document[Hyrax.config.id_field] end end
Version data entries
25 entries across 25 versions & 1 rubygems