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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = underlying_token
  @origin = origin
end

Instance Attribute Details

#originObject (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_tokenObject (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