Class: Wings::FileMetadataNode

Inherits:
ActiveFedora::Base show all
Defined in:
lib/wings/active_fedora_converter/file_metadata_node.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ActiveFedora::Base

supports_property?

Class Method Details

.model_nameObject



27
28
29
# File 'lib/wings/active_fedora_converter/file_metadata_node.rb', line 27

def model_name(*)
  Hyrax::Name.new(valkyrie_class)
end

.to_rdf_representationObject Also known as: inspect



31
32
33
# File 'lib/wings/active_fedora_converter/file_metadata_node.rb', line 31

def to_rdf_representation
  "Wings(#{valkyrie_class})"
end

Instance Method Details

#indexing_serviceObject



38
39
40
# File 'lib/wings/active_fedora_converter/file_metadata_node.rb', line 38

def indexing_service
  Hyrax::ValkyrieIndexer.for(resource: valkyrie_resource)
end

#to_solrObject



42
43
44
45
46
# File 'lib/wings/active_fedora_converter/file_metadata_node.rb', line 42

def to_solr
  super.tap do |doc|
    doc[:file_identifier_ssim] = file_identifier
  end
end