Class: Stoplight::Domain::Storage::RecoveryLockToken

Inherits:
Object
  • Object
show all
Includes:
_RecoveryLockToken
Defined in:
lib/stoplight/domain/storage/recovery_lock_token.rb,
sig/_private/stoplight/domain/storage/recovery_lock_token.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRecoveryLockToken

Returns a new instance of RecoveryLockToken.



9
10
11
# File 'lib/stoplight/domain/storage/recovery_lock_token.rb', line 9

def initialize
  @token = SecureRandom.uuid
end

Instance Attribute Details

#tokenString (readonly)

Returns the value of attribute token.

Returns:

  • (String)


7
8
9
# File 'lib/stoplight/domain/storage/recovery_lock_token.rb', line 7

def token
  @token
end