Class: WorkOS::VaultDekReadData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::VaultDekReadData
- Defined in:
- lib/workos/vault/vault_dek_read_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ actor_id: :actor_id, actor_source: :actor_source, actor_name: :actor_name, key_ids: :key_ids, key_context: :key_context }.freeze
Instance Attribute Summary collapse
-
#actor_id ⇒ Object
Returns the value of attribute actor_id.
-
#actor_name ⇒ Object
Returns the value of attribute actor_name.
-
#actor_source ⇒ Object
Returns the value of attribute actor_source.
-
#key_context ⇒ Object
Returns the value of attribute key_context.
-
#key_ids ⇒ Object
Returns the value of attribute key_ids.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ VaultDekReadData
constructor
A new instance of VaultDekReadData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ VaultDekReadData
Returns a new instance of VaultDekReadData.
22 23 24 25 26 27 28 29 |
# File 'lib/workos/vault/vault_dek_read_data.rb', line 22 def initialize(json) hash = self.class.normalize(json) @actor_id = hash[:actor_id] @actor_source = hash[:actor_source] @actor_name = hash[:actor_name] @key_ids = hash[:key_ids] || [] @key_context = hash[:key_context] || {} end |
Instance Attribute Details
#actor_id ⇒ Object
Returns the value of attribute actor_id.
15 16 17 |
# File 'lib/workos/vault/vault_dek_read_data.rb', line 15 def actor_id @actor_id end |
#actor_name ⇒ Object
Returns the value of attribute actor_name.
15 16 17 |
# File 'lib/workos/vault/vault_dek_read_data.rb', line 15 def actor_name @actor_name end |
#actor_source ⇒ Object
Returns the value of attribute actor_source.
15 16 17 |
# File 'lib/workos/vault/vault_dek_read_data.rb', line 15 def actor_source @actor_source end |
#key_context ⇒ Object
Returns the value of attribute key_context.
15 16 17 |
# File 'lib/workos/vault/vault_dek_read_data.rb', line 15 def key_context @key_context end |
#key_ids ⇒ Object
Returns the value of attribute key_ids.
15 16 17 |
# File 'lib/workos/vault/vault_dek_read_data.rb', line 15 def key_ids @key_ids end |