Class: WorkOS::RekeyRequest

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/vault/rekey_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  context: :context,
  encrypted_keys: :encrypted_keys
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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

#contextObject

Returns the value of attribute context.



12
13
14
# File 'lib/workos/vault/rekey_request.rb', line 12

def context
  @context
end

#encrypted_keysObject

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