Module: Dor::Identifiable::ClassMethods
- Defined in:
- lib/dor/models/concerns/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.
16 17 18 |
# File 'lib/dor/models/concerns/identifiable.rb', line 16 def object_type @object_type end |
Instance Method Details
#has_object_type(str) ⇒ Object
17 18 19 20 |
# File 'lib/dor/models/concerns/identifiable.rb', line 17 def has_object_type(str) @object_type = str Dor.registered_classes[str] = self end |