Class: WorkOS::Vault::DataKey

Inherits:
Data
  • Object
show all
Defined in:
lib/workos/vault.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



28
29
30
# File 'lib/workos/vault.rb', line 28

def id
  @id
end

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of 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