Class: ActiveSupport::Messages::RotationConfiguration
- Defined in:
- lib/active_support/messages/rotation_configuration.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#encrypted ⇒ Object
readonly
Returns the value of attribute encrypted.
-
#signed ⇒ Object
readonly
Returns the value of attribute signed.
Instance Method Summary collapse
-
#initialize ⇒ RotationConfiguration
constructor
A new instance of RotationConfiguration.
- #rotate(kind, *args) ⇒ Object
Constructor Details
#initialize ⇒ RotationConfiguration
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
#encrypted ⇒ Object (readonly)
Returns the value of attribute encrypted.
6 7 8 |
# File 'lib/active_support/messages/rotation_configuration.rb', line 6 def encrypted @encrypted end |
#signed ⇒ Object (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 |