Class: Opto::Resolvers::RandomUuid

Inherits:
Opto::Resolver show all
Defined in:
lib/opto/resolvers/random_uuid.rb

Overview

Generates a UUID, such as “b379de07-3324-44b1-a5f3-8617ed1b41ea”

Instance Attribute Summary

Attributes inherited from Opto::Resolver

#hint, #option

Instance Method Summary collapse

Methods inherited from Opto::Resolver

for, inherited, #initialize, origin, #origin, resolvers

Constructor Details

This class inherits a constructor from Opto::Resolver

Instance Method Details

#resolveObject


7
8
9
# File 'lib/opto/resolvers/random_uuid.rb', line 7

def resolve
  SecureRandom.uuid
end