Class: WorkOS::VaultDataCreatedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::VaultDataCreatedData
- Defined in:
- lib/workos/vault/vault_data_created_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ actor_id: :actor_id, actor_source: :actor_source, actor_name: :actor_name, kv_name: :kv_name, key_id: :key_id, 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_id ⇒ Object
Returns the value of attribute key_id.
-
#kv_name ⇒ Object
Returns the value of attribute kv_name.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ VaultDataCreatedData
constructor
A new instance of VaultDataCreatedData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ VaultDataCreatedData
Returns a new instance of VaultDataCreatedData.
24 25 26 27 28 29 30 31 32 |
# File 'lib/workos/vault/vault_data_created_data.rb', line 24 def initialize(json) hash = self.class.normalize(json) @actor_id = hash[:actor_id] @actor_source = hash[:actor_source] @actor_name = hash[:actor_name] @kv_name = hash[:kv_name] @key_id = hash[:key_id] @key_context = hash[:key_context] || {} end |
Instance Attribute Details
#actor_id ⇒ Object
Returns the value of attribute actor_id.
16 17 18 |
# File 'lib/workos/vault/vault_data_created_data.rb', line 16 def actor_id @actor_id end |
#actor_name ⇒ Object
Returns the value of attribute actor_name.
16 17 18 |
# File 'lib/workos/vault/vault_data_created_data.rb', line 16 def actor_name @actor_name end |
#actor_source ⇒ Object
Returns the value of attribute actor_source.
16 17 18 |
# File 'lib/workos/vault/vault_data_created_data.rb', line 16 def actor_source @actor_source end |
#key_context ⇒ Object
Returns the value of attribute key_context.
16 17 18 |
# File 'lib/workos/vault/vault_data_created_data.rb', line 16 def key_context @key_context end |
#key_id ⇒ Object
Returns the value of attribute key_id.
16 17 18 |
# File 'lib/workos/vault/vault_data_created_data.rb', line 16 def key_id @key_id end |
#kv_name ⇒ Object
Returns the value of attribute kv_name.
16 17 18 |
# File 'lib/workos/vault/vault_data_created_data.rb', line 16 def kv_name @kv_name end |