Class: Identifier::Global::Uuid::InaturalistObservationPhoto
- Inherits:
-
Identifier::Global::Uuid
- Object
- Identifier
- Identifier::Global
- Identifier::Global::Uuid
- Identifier::Global::Uuid::InaturalistObservationPhoto
- Defined in:
- app/models/identifier/global/uuid/inaturalist_observation_photo.rb
Constant Summary
Constants included from SoftValidation
SoftValidation::ANCESTORS_WITH_SOFT_VALIDATIONS
Instance Attribute Summary
Attributes inherited from Identifier::Global::Uuid
Attributes inherited from Identifier::Global
Instance Method Summary collapse
- #object_is_image ⇒ Object private
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_image ⇒ Object (private)
6 7 8 |
# File 'app/models/identifier/global/uuid/inaturalist_observation_photo.rb', line 6 def object_is_image errors.add(:identifier_object, 'must be an Image') unless identifier_object.is_a?(Image) end |