class ActiveFedora::Reflection::RDFPropertyReflection
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
ActiveFedora::Reflection::MacroReflection::new
# File lib/active_fedora/reflection.rb, line 568 def initialize(*args) super active_fedora.index_config[name] = build_index_config end
Public Instance Methods
association_class()
click to toggle source
# File lib/active_fedora/reflection.rb, line 577 def association_class Associations::RDF end
collection?()
click to toggle source
# File lib/active_fedora/reflection.rb, line 581 def collection? true end
derive_class_name()
click to toggle source
# 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()
click to toggle source
# File lib/active_fedora/reflection.rb, line 585 def derive_foreign_key name end
macro()
click to toggle source
# File lib/active_fedora/reflection.rb, line 573 def macro :rdf end
Private Instance Methods
build_index_config()
click to toggle source
# File lib/active_fedora/reflection.rb, line 597 def build_index_config ActiveFedora::Indexing::Map::IndexObject.new(predicate_for_solr) { |index| index.as :symbol } end