Class: Stoplight::Infrastructure::FailSafe::Storage::RecoveryLockToken
- Inherits:
-
Object
- Object
- Stoplight::Infrastructure::FailSafe::Storage::RecoveryLockToken
- Defined in:
- lib/stoplight/infrastructure/fail_safe/storage/recovery_lock_token.rb
Instance Attribute Summary collapse
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
-
#underlying_token ⇒ Object
readonly
Returns the value of attribute underlying_token.
Instance Method Summary collapse
-
#initialize(underlying_token:, origin:) ⇒ RecoveryLockToken
constructor
A new instance of RecoveryLockToken.
Constructor Details
#initialize(underlying_token:, origin:) ⇒ RecoveryLockToken
11 12 13 14 |
# File 'lib/stoplight/infrastructure/fail_safe/storage/recovery_lock_token.rb', line 11 def initialize(underlying_token:, origin:) @underlying_token = @origin = origin end |
Instance Attribute Details
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
9 10 11 |
# File 'lib/stoplight/infrastructure/fail_safe/storage/recovery_lock_token.rb', line 9 def origin @origin end |
#underlying_token ⇒ Object (readonly)
Returns the value of attribute underlying_token.
8 9 10 |
# File 'lib/stoplight/infrastructure/fail_safe/storage/recovery_lock_token.rb', line 8 def @underlying_token end |