Class: JWT::Configuration::Container
- Inherits:
-
Object
- Object
- JWT::Configuration::Container
- Defined in:
- lib/jwt/configuration/container.rb
Constant Summary collapse
- DEPRECATION_WARNINGS_VALUES =
%i[once warn silent].freeze
Instance Attribute Summary collapse
-
#decode ⇒ Object
Returns the value of attribute decode.
-
#deprecation_warnings ⇒ Object
Returns the value of attribute deprecation_warnings.
-
#jwk ⇒ Object
Returns the value of attribute jwk.
-
#strict_base64_decoding ⇒ Object
Returns the value of attribute strict_base64_decoding.
Instance Method Summary collapse
-
#initialize ⇒ Container
constructor
A new instance of Container.
- #reset! ⇒ Object
Constructor Details
#initialize ⇒ Container
Returns a new instance of Container.
12 13 14 |
# File 'lib/jwt/configuration/container.rb', line 12 def initialize reset! end |
Instance Attribute Details
#decode ⇒ Object
Returns the value of attribute decode.
9 10 11 |
# File 'lib/jwt/configuration/container.rb', line 9 def decode @decode end |
#deprecation_warnings ⇒ Object
Returns the value of attribute deprecation_warnings.
10 11 12 |
# File 'lib/jwt/configuration/container.rb', line 10 def deprecation_warnings @deprecation_warnings end |
#jwk ⇒ Object
Returns the value of attribute jwk.
9 10 11 |
# File 'lib/jwt/configuration/container.rb', line 9 def jwk @jwk end |
#strict_base64_decoding ⇒ Object
Returns the value of attribute strict_base64_decoding.
9 10 11 |
# File 'lib/jwt/configuration/container.rb', line 9 def strict_base64_decoding @strict_base64_decoding end |
Instance Method Details
#reset! ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/jwt/configuration/container.rb', line 16 def reset! @decode = DecodeConfiguration.new @jwk = JwkConfiguration.new @strict_base64_decoding = false self.deprecation_warnings = :once end |