Sha256: 3977f36f5f56e49c60db8a967e58a9f58d681aa91f59b96c54888c777d19cf94

Contents?: true

Size: 213 Bytes

Versions: 64

Compression:

Stored size: 213 Bytes

Contents

class SolrDocument
  def initialize(source_doc={}, solr_response=nil)
    @source_doc = source_doc
  end
  def fetch(field, default)
    @source_doc[field]
  end

  def [](field)
    @source_doc[field]
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
hydra-access-controls-5.4.1 spec/support/solr_document.rb
hydra-access-controls-6.5.2 spec/support/solr_document.rb
hydra-access-controls-6.5.1 spec/support/solr_document.rb
hydra-access-controls-6.4.2 spec/support/solr_document.rb
hydra-access-controls-6.5.0 spec/support/solr_document.rb
hydra-access-controls-6.5.0.rc2 spec/support/solr_document.rb
hydra-access-controls-6.4.1 spec/support/solr_document.rb
hydra-access-controls-6.4.0 spec/support/solr_document.rb
hydra-access-controls-6.4.0.rc5 spec/support/solr_document.rb
hydra-access-controls-6.4.0.rc4 spec/support/solr_document.rb
hydra-access-controls-6.4.0.rc3 spec/support/solr_document.rb
hydra-access-controls-6.4.0.rc2 spec/support/solr_document.rb
hydra-access-controls-6.4.0.rc1 spec/support/solr_document.rb
hydra-access-controls-6.4.0.pre2 spec/support/solr_document.rb
hydra-access-controls-6.4.0.pre1 spec/support/solr_document.rb
hydra-access-controls-6.3.4 spec/support/solr_document.rb
hydra-access-controls-6.3.3 spec/support/solr_document.rb
hydra-access-controls-6.3.2 spec/support/solr_document.rb
hydra-access-controls-6.3.1 spec/support/solr_document.rb
hydra-access-controls-6.3.0 spec/support/solr_document.rb