Module: Dor::Identifiable::ClassMethods

Defined in:
lib/dor/models/identifiable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#object_typeObject (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