Class: JWT::Configuration::Container

Inherits:
Object
  • Object
show all
Defined in:
lib/jwt/configuration/container.rb

Constant Summary collapse

DEPRECATION_WARNINGS_VALUES =
%i[once warn silent].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContainer

Returns a new instance of Container.



12
13
14
# File 'lib/jwt/configuration/container.rb', line 12

def initialize
  reset!
end

Instance Attribute Details

#decodeObject

Returns the value of attribute decode.



9
10
11
# File 'lib/jwt/configuration/container.rb', line 9

def decode
  @decode
end

#deprecation_warningsObject

Returns the value of attribute deprecation_warnings.



10
11
12
# File 'lib/jwt/configuration/container.rb', line 10

def deprecation_warnings
  @deprecation_warnings
end

#jwkObject

Returns the value of attribute jwk.



9
10
11
# File 'lib/jwt/configuration/container.rb', line 9

def jwk
  @jwk
end

#strict_base64_decodingObject

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