Class: ActiveFedora::RDF::FieldMap::Builder

Inherits:
PolymorphicBuilder show all
Defined in:
lib/active_fedora/rdf/field_map.rb

Overview

Abstract class that implements the PolymorphicBuilder interface and is used for for building FieldMap entries. You can extend this object to create your own builder for creating the values in your solr fields.

Direct Known Subclasses

PropertyBuilder, ResourceBuilder

Instance Attribute Summary

Attributes inherited from PolymorphicBuilder

#entry, #index_field_config, #name, #object

Instance Method Summary collapse

Methods inherited from PolymorphicBuilder

#initialize

Constructor Details

This class inherits a constructor from ActiveFedora::RDF::FieldMap::PolymorphicBuilder

Instance Method Details

#buildObject



65
66
67
68
69
70
# File 'lib/active_fedora/rdf/field_map.rb', line 65

def build
  type = index_field_config.data_type
  behaviors = index_field_config.behaviors
  return unless type && behaviors
  entry.merge!(type, behaviors, find_values)
end