Class: Stoplight::Infrastructure::FailSafe::Storage::RecoveryLockToken

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(underlying_token:, origin:) ⇒ RecoveryLockToken

Returns a new instance of 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 = underlying_token
  @origin = origin
end

Instance Attribute Details

#origin:primary, :failover (readonly)

Returns the value of attribute origin.

Returns:

  • (:primary, :failover)


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

def origin
  @origin
end

#underlying_tokenDomain::_RecoveryLockToken (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
  @underlying_token
end