Class: WorkOS::Vault::ObjectMetadata
- Inherits:
-
Data
- Object
- Data
- WorkOS::Vault::ObjectMetadata
- Defined in:
- lib/workos/vault.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#environment_id ⇒ Object
readonly
Returns the value of attribute environment_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#key_id ⇒ Object
readonly
Returns the value of attribute key_id.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#updated_by ⇒ Object
readonly
Returns the value of attribute updated_by.
-
#version_id ⇒ Object
readonly
Returns the value of attribute version_id.
Class Method Summary collapse
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context
51 52 53 |
# File 'lib/workos/vault.rb', line 51 def context @context end |
#environment_id ⇒ Object (readonly)
Returns the value of attribute environment_id
51 52 53 |
# File 'lib/workos/vault.rb', line 51 def environment_id @environment_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id
51 52 53 |
# File 'lib/workos/vault.rb', line 51 def id @id end |
#key_id ⇒ Object (readonly)
Returns the value of attribute key_id
51 52 53 |
# File 'lib/workos/vault.rb', line 51 def key_id @key_id end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at
51 52 53 |
# File 'lib/workos/vault.rb', line 51 def updated_at @updated_at end |
#updated_by ⇒ Object (readonly)
Returns the value of attribute updated_by
51 52 53 |
# File 'lib/workos/vault.rb', line 51 def updated_by @updated_by end |
#version_id ⇒ Object (readonly)
Returns the value of attribute version_id
51 52 53 |
# File 'lib/workos/vault.rb', line 51 def version_id @version_id end |
Class Method Details
.from_hash(hash) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/workos/vault.rb', line 52 def self.from_hash(hash) new( context: hash["context"], environment_id: hash["environment_id"], id: hash["id"], key_id: hash["key_id"], updated_at: hash["updated_at"], updated_by: ObjectUpdateBy.from_hash(hash["updated_by"]), version_id: hash["version_id"] ) end |