Module: ActiveSupport::Messages::Rotator

Included in:
Encryptor, Verifier, SecureCompareRotator
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/messages/rotator.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Encryptor, Verifier

Instance Method Summary collapse

Instance Method Details

#initialize(*secrets, on_rotation: nil, **options) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/messages/rotator.rb', line 6

def initialize(*secrets, on_rotation: nil, **options)
  super(*secrets, **options)

  @options   = options
  @rotations = []
  @on_rotation = on_rotation
end

#rotate(*secrets, **options) ⇒ Object



14
15
16
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4/lib/active_support/messages/rotator.rb', line 14

def rotate(*secrets, **options)
  @rotations << build_rotation(*secrets, @options.merge(options))
end