module ActiveFedora::Core::ClassMethods

Public Instance Methods

generated_association_methods() click to toggle source
# File lib/active_fedora/core.rb, line 115
def generated_association_methods
  @generated_association_methods ||= begin
    mod = const_set(:GeneratedAssociationMethods, Module.new)
    include mod
    mod
  end
end
to_class_uri(attrs = nil) click to toggle source

Returns a suitable string representation for :has_model @deprecated use to_rdf_representation instead

# File lib/active_fedora/core.rb, line 132
def to_class_uri(attrs = nil)
  Deprecation.warn ActiveFedora::Core, "to_class_uri no longer acceps an argument" if attrs
  to_rdf_representation
end
to_rdf_representation() click to toggle source

Returns a suitable string representation for :has_model Override this method if you want to change how this class is represented in RDF.

# File lib/active_fedora/core.rb, line 126
def to_rdf_representation
  name
end

Private Instance Methods

relation() click to toggle source
# File lib/active_fedora/core.rb, line 140
def relation
  Relation.new(self)
end