Class: OpenEHR::RM::Support::Identification::InternetID
- Defined in:
- lib/openehr/rm/support/identification.rb
Constant Summary collapse
- FORMAT =
RFC 1034 domain-name form: dot-separated labels, each alphanumeric (with internal hyphens allowed).
/\A[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+\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
417 418 419 420 421 422 |
# File 'lib/openehr/rm/support/identification.rb', line 417 def value=(value) unless value.is_a?(String) && value =~ FORMAT raise ArgumentError, 'invalid internet id form' end super end |