Class: ActiveSupport::Messages::RotationConfiguration
- Defined in:
- activesupport/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, **options) ⇒ Object
Constructor Details
#initialize ⇒ RotationConfiguration
Returns a new instance of RotationConfiguration.
| 8 9 10 | # File 'activesupport/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 'activesupport/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 'activesupport/lib/active_support/messages/rotation_configuration.rb', line 6 def signed @signed end | 
Instance Method Details
#rotate(kind, *args, **options) ⇒ Object
| 12 13 14 15 16 17 18 19 20 | # File 'activesupport/lib/active_support/messages/rotation_configuration.rb', line 12 def rotate(kind, *args, **) args << unless .empty? case kind when :signed @signed << args when :encrypted @encrypted << args end end |