Class: Alchemrest::Transforms::Constraint::IsUuid

Inherits:
MatchesRegex show all
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

Methods inherited from MatchesRegex

#meets_conditions?

Constructor Details

#initializeIsUuid

Returns a new instance of IsUuid.



9
10
11
# File 'lib/alchemrest/transforms/constraint/is_uuid.rb', line 9

def initialize
  super(REGEX)
end

Instance Method Details

#descriptionObject



13
14
15
# File 'lib/alchemrest/transforms/constraint/is_uuid.rb', line 13

def description
  "is a UUID string"
end