Class: Alchemrest::Transforms::Constraint::IsUuid
- Inherits:
-
MatchesRegex
- Object
- Alchemrest::Transforms::Constraint
- MatchesRegex
- Alchemrest::Transforms::Constraint::IsUuid
- Defined in:
- lib/alchemrest/transforms/constraint/is_uuid.rb
Constant Summary collapse
- REGEX =
/\A((?:\h{8})-(?:\h{4})-(?:\h{4})-(?:\h{4})-(?:\h{12}))\z/
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize ⇒ IsUuid
constructor
A new instance of IsUuid.
Methods inherited from MatchesRegex
Constructor Details
Instance Method Details
#description ⇒ Object
13 14 15 |
# File 'lib/alchemrest/transforms/constraint/is_uuid.rb', line 13 def description "is a UUID string" end |