Class: Stoplight::Domain::Storage::RecoveryLockToken
- Inherits:
-
Object
- Object
- Stoplight::Domain::Storage::RecoveryLockToken
- Defined in:
- lib/stoplight/domain/storage/recovery_lock_token.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ RecoveryLockToken
constructor
A new instance of RecoveryLockToken.
Constructor Details
#initialize ⇒ RecoveryLockToken
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
#token ⇒ Object (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 |