Module: Dor::Identifiable::ClassMethods
- Defined in:
- lib/dor/models/identifiable.rb
Instance Attribute Summary collapse
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
Instance Method Summary collapse
Instance Attribute Details
#object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
14 15 16 |
# File 'lib/dor/models/identifiable.rb', line 14 def object_type @object_type end |
Instance Method Details
#has_object_type(str) ⇒ Object
15 16 17 18 |
# File 'lib/dor/models/identifiable.rb', line 15 def has_object_type str @object_type = str Dor.registered_classes[str] = self end |