Method: Valkyrie::Persistence::Solr::ORMConverter#attributes

Defined in:
lib/valkyrie/persistence/solr/orm_converter.rb

#attributesHash

Derive the Valkyrie attributes from the Solr Document

Returns:

  • (Hash)


40
41
42
43
44
45
46
# File 'lib/valkyrie/persistence/solr/orm_converter.rb', line 40

def attributes
  attribute_hash.merge("id" => id,
                       internal_resource: internal_resource,
                       created_at: created_at,
                       updated_at: updated_at,
                       Valkyrie::Persistence::Attributes::OPTIMISTIC_LOCK => token)
end