Class: OpenEHR::RM::Support::Identification::UUID
- Defined in:
- lib/openehr/rm/support/identification.rb
Constant Summary collapse
- FORMAT =
/\A[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\z/
Instance Attribute Summary
Attributes inherited from UID
Instance Method Summary collapse
Methods inherited from UID
Constructor Details
This class inherits a constructor from OpenEHR::RM::Support::Identification::UID
Instance Method Details
#value=(value) ⇒ Object
404 405 406 407 408 409 |
# File 'lib/openehr/rm/support/identification.rb', line 404 def value=(value) unless value.is_a?(String) && value =~ FORMAT raise ArgumentError, 'invalid UUID form' end super end |