Class: ActiveFedora::RDF::FieldMap::PolymorphicBuilder
- Inherits:
 - 
      Object
      
        
- Object
 - ActiveFedora::RDF::FieldMap::PolymorphicBuilder
 
 
- Defined in:
 - lib/active_fedora/rdf/field_map.rb
 
Overview
Supports assigning the delegate class that calls .build to insert the fields into the solr document.
Direct Known Subclasses
Instance Attribute Summary collapse
- 
  
    
      #entry  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
instance of ActiveFedora::RDF::FieldMapEntry which will contain the values of the solr field.
 - 
  
    
      #index_field_config  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
an instance of ActiveFedora::Indexing::Map::IndexObject.
 - 
  
    
      #name  ⇒ Symbol 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
the name of the property on the object that we’re indexing.
 - 
  
    
      #object  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
the instance of ActiveFedora::Base which is being indexed into Solr.
 
Instance Method Summary collapse
- #build ⇒ Object
 - 
  
    
      #initialize(entry, index_field_config, object, name)  ⇒ PolymorphicBuilder 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of PolymorphicBuilder.
 
Constructor Details
#initialize(entry, index_field_config, object, name) ⇒ PolymorphicBuilder
Returns a new instance of PolymorphicBuilder.
      33 34 35 36 37 38  | 
    
      # File 'lib/active_fedora/rdf/field_map.rb', line 33 def initialize(entry, index_field_config, object, name) @entry = entry @index_field_config = index_field_config @object = object @name = name end  | 
  
Instance Attribute Details
#entry ⇒ Object
instance of ActiveFedora::RDF::FieldMapEntry which will contain the values of the solr field
      30 31 32  | 
    
      # File 'lib/active_fedora/rdf/field_map.rb', line 30 def entry @entry end  | 
  
#index_field_config ⇒ Object
an instance of ActiveFedora::Indexing::Map::IndexObject
      30 31 32  | 
    
      # File 'lib/active_fedora/rdf/field_map.rb', line 30 def index_field_config @index_field_config end  | 
  
#name ⇒ Symbol
the name of the property on the object that we’re indexing
      30 31 32  | 
    
      # File 'lib/active_fedora/rdf/field_map.rb', line 30 def name @name end  | 
  
#object ⇒ Object
the instance of ActiveFedora::Base which is being indexed into Solr
      30 31 32  | 
    
      # File 'lib/active_fedora/rdf/field_map.rb', line 30 def object @object end  | 
  
Instance Method Details
#build ⇒ Object
      40 41 42  | 
    
      # File 'lib/active_fedora/rdf/field_map.rb', line 40 def build delegate_class.new(entry, index_field_config, object, name).build end  |