Class: WorkOS::Vault::DataKey
- Inherits:
-
Data
- Object
- Data
- WorkOS::Vault::DataKey
- Defined in:
- lib/workos/vault.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id
28 29 30 |
# File 'lib/workos/vault.rb', line 28 def id @id end |
#key ⇒ Object (readonly)
Returns the value of attribute key
28 29 30 |
# File 'lib/workos/vault.rb', line 28 def key @key end |
Class Method Details
.from_response(hash) ⇒ Object
29 30 31 |
# File 'lib/workos/vault.rb', line 29 def self.from_response(hash) new(id: hash["id"], key: hash["data_key"]) end |