Class: ActiveSupport::Messages::RotationConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/active_support/messages/rotation_configuration.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRotationConfiguration

Returns a new instance of RotationConfiguration.



8
9
10
# File 'lib/active_support/messages/rotation_configuration.rb', line 8

def initialize
  @signed, @encrypted = [], []
end

Instance Attribute Details

#encryptedObject (readonly)

Returns the value of attribute encrypted.



6
7
8
# File 'lib/active_support/messages/rotation_configuration.rb', line 6

def encrypted
  @encrypted
end

#signedObject (readonly)

Returns the value of attribute signed.



6
7
8
# File 'lib/active_support/messages/rotation_configuration.rb', line 6

def signed
  @signed
end

Instance Method Details

#rotate(kind, *args) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/active_support/messages/rotation_configuration.rb', line 12

def rotate(kind, *args)
  case kind
  when :signed
    @signed << args
  when :encrypted
    @encrypted << args
  end
end