Class: Wings::FileMetadataNode
- Inherits:
-
ActiveFedora::Base
- Object
- ActiveFedora::Base
- Wings::FileMetadataNode
- Defined in:
- lib/wings/active_fedora_converter/file_metadata_node.rb
Class Method Summary collapse
- .model_name ⇒ Object
- .to_rdf_representation ⇒ Object (also: inspect)
Instance Method Summary collapse
Methods inherited from ActiveFedora::Base
Class Method Details
.model_name ⇒ Object
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_representation ⇒ Object 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_service ⇒ Object
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_solr ⇒ Object
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 |