Class: Identifier::Global::Uuid
- Inherits:
-
Identifier::Global
- Object
- Identifier
- Identifier::Global
- Identifier::Global::Uuid
- Defined in:
- app/models/identifier/global/uuid.rb
Overview
Universally Unique Identifier
Direct Known Subclasses
Defined Under Namespace
Classes: Auto, TaxonworksDwcOccurrence
Constant Summary
Constants included from SoftValidation
SoftValidation::ANCESTORS_WITH_SOFT_VALIDATIONS
Instance Attribute Summary collapse
-
#is_generated ⇒ Object
Returns the value of attribute is_generated.
Attributes inherited from Identifier::Global
Instance Method Summary collapse
Methods inherited from Identifier::Global
#build_cached, #dwc_occurrences, #is_global?, #sv_resolves?
Methods included from SoftValidation
#clear_soft_validations, #fix_for, #fix_soft_validations, #soft_fixed?, #soft_valid?, #soft_validate, #soft_validated?, #soft_validations, #soft_validators
Instance Attribute Details
#is_generated ⇒ Object
Returns the value of attribute is_generated.
4 5 6 |
# File 'app/models/identifier/global/uuid.rb', line 4 def is_generated @is_generated end |
Instance Method Details
#generate_uuid ⇒ Object
10 11 12 |
# File 'app/models/identifier/global/uuid.rb', line 10 def generate_uuid write_attribute(:identifier, SecureRandom.uuid) end |