Class: ActiveFedora::Reflection::RDFPropertyReflection
- Inherits:
 - 
      AssociationReflection
      
        
- Object
 - AbstractReflection
 - MacroReflection
 - AssociationReflection
 - ActiveFedora::Reflection::RDFPropertyReflection
 
 
- Defined in:
 - lib/active_fedora/reflection.rb
 
Direct Known Subclasses
Constant Summary
Constants inherited from AssociationReflection
AssociationReflection::INVALID_AUTOMATIC_INVERSE_OPTIONS, AssociationReflection::VALID_AUTOMATIC_INVERSE_MACROS
Instance Attribute Summary
Attributes inherited from AssociationReflection
Attributes inherited from MacroReflection
#active_fedora, #name, #options, #scope
Instance Method Summary collapse
- #association_class ⇒ Object
 - #collection? ⇒ Boolean
 - #derive_class_name ⇒ Object
 - #derive_foreign_key ⇒ Object
 - 
  
    
      #initialize(*args)  ⇒ RDFPropertyReflection 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of RDFPropertyReflection.
 - #macro ⇒ Object
 
Methods inherited from AssociationReflection
#belongs_to?, #check_validity!, #check_validity_of_inverse!, #collect_join_chain, #constructable?, #create_association, #foreign_key, #has_and_belongs_to_many?, #has_inverse?, #has_many?, #inverse_of, #predicate, #predicate_for_solr, #solr_key, #validate?
Methods inherited from MacroReflection
#==, #autosave=, #compute_class, #klass
Methods inherited from AbstractReflection
#alias_candidate, #build_association, #chain, #check_validity_of_inverse!, #class_name, #constraints, #inverse_of, #through_reflection?
Constructor Details
#initialize(*args) ⇒ RDFPropertyReflection
Returns a new instance of RDFPropertyReflection.
      568 569 570 571  | 
    
      # File 'lib/active_fedora/reflection.rb', line 568 def initialize(*args) super active_fedora.index_config[name] = build_index_config end  | 
  
Instance Method Details
#association_class ⇒ Object
      577 578 579  | 
    
      # File 'lib/active_fedora/reflection.rb', line 577 def association_class Associations::RDF end  | 
  
#collection? ⇒ Boolean
      581 582 583  | 
    
      # File 'lib/active_fedora/reflection.rb', line 581 def collection? true end  | 
  
#derive_class_name ⇒ Object
      589 590 591 592 593  | 
    
      # File 'lib/active_fedora/reflection.rb', line 589 def derive_class_name class_name = name.to_s.sub(/_ids?$/, '').camelize class_name = class_name.singularize if collection? class_name end  | 
  
#derive_foreign_key ⇒ Object
      585 586 587  | 
    
      # File 'lib/active_fedora/reflection.rb', line 585 def derive_foreign_key name end  | 
  
#macro ⇒ Object
      573 574 575  | 
    
      # File 'lib/active_fedora/reflection.rb', line 573 def macro :rdf end  |