Class: ActiveFedora::RDF::FieldMap::ResourceBuilder

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

Overview

Builds a FieldMap entry for a resource such as an ActiveFedora::Base object and returns the uri as the value unless :using has been set as an option to the index.as block on the property in question. In that case, the symbol assigned to :using will used as the value.

Instance Attribute Summary

Attributes inherited from PolymorphicBuilder

#entry, #index_field_config, #name, #object

Instance Method Summary collapse

Methods inherited from Builder

#build

Methods inherited from PolymorphicBuilder

#build, #initialize

Constructor Details

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

Instance Method Details

#find_valuesObject



77
78
79
# File 'lib/active_fedora/rdf/field_map.rb', line 77

def find_values
  object.send(name).map(&index_field_config.term.fetch(:using, :uri))
end