Class: Identifier::Global::Uuid::InaturalistObservationSound

Inherits:
Identifier::Global::Uuid show all
Defined in:
app/models/identifier/global/uuid/inaturalist_observation_sound.rb

Constant Summary

Constants included from SoftValidation

SoftValidation::ANCESTORS_WITH_SOFT_VALIDATIONS

Instance Attribute Summary

Attributes inherited from Identifier::Global::Uuid

#is_generated

Attributes inherited from Identifier::Global

#relation

Instance Method Summary collapse

Methods inherited from Identifier::Global::Uuid

#generate_uuid, #using_uuid_class

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 Method Details

#object_is_soundObject (private)



6
7
8
# File 'app/models/identifier/global/uuid/inaturalist_observation_sound.rb', line 6

def object_is_sound
  errors.add(:identifier_object, 'must be a Sound') unless identifier_object.is_a?(Sound)
end