Class: WorkOS::JwksResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::JwksResponse
- Defined in:
- lib/workos/user_management/jwks_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ keys: :keys }.freeze
Instance Attribute Summary collapse
-
#keys ⇒ Object
Returns the value of attribute keys.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ JwksResponse
constructor
A new instance of JwksResponse.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ JwksResponse
Returns a new instance of JwksResponse.
13 14 15 16 |
# File 'lib/workos/user_management/jwks_response.rb', line 13 def initialize(json) hash = self.class.normalize(json) @keys = (hash[:keys] || []).map { |item| item ? WorkOS::JwksResponseKeys.new(item) : nil } end |
Instance Attribute Details
#keys ⇒ Object
Returns the value of attribute keys.
11 12 13 |
# File 'lib/workos/user_management/jwks_response.rb', line 11 def keys @keys end |