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

Inherits:
Object
  • Object
show all
Defined in:
lib/stoplight/domain/storage/recovery_lock_token.rb

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

#tokenObject (readonly)

Returns the value of attribute token.



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

def token
  @token
end