123456789_123456789_123456789_123456789_123456789_

Class: ActiveSupport::Messages::RotationConfiguration

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: activesupport/lib/active_support/messages/rotation_configuration.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newRotationConfiguration

[ GitHub ]

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

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

Instance Attribute Details

#encrypted (readonly)

[ GitHub ]

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

attr_reader :signed, :encrypted

#signed (readonly)

[ GitHub ]

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

attr_reader :signed, :encrypted

Instance Method Details

#rotate(kind, *args, **options)

[ GitHub ]

  
# File 'activesupport/lib/active_support/messages/rotation_configuration.rb', line 12

def rotate(kind, *args, **options)
  args << options unless options.empty?
  case kind
  when :signed
    @signed << args
  when :encrypted
    @encrypted << args
  end
end