Class: WorkOS::RekeyRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::RekeyRequest
- Defined in:
- lib/workos/vault/rekey_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ context: :context, encrypted_keys: :encrypted_keys }.freeze
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#encrypted_keys ⇒ Object
Returns the value of attribute encrypted_keys.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ RekeyRequest
constructor
A new instance of RekeyRequest.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ RekeyRequest
Returns a new instance of RekeyRequest.
16 17 18 19 20 |
# File 'lib/workos/vault/rekey_request.rb', line 16 def initialize(json) hash = self.class.normalize(json) @context = hash[:context] || {} @encrypted_keys = hash[:encrypted_keys] end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
12 13 14 |
# File 'lib/workos/vault/rekey_request.rb', line 12 def context @context end |
#encrypted_keys ⇒ Object
Returns the value of attribute encrypted_keys.
12 13 14 |
# File 'lib/workos/vault/rekey_request.rb', line 12 def encrypted_keys @encrypted_keys end |