Class: WorkOS::DecryptResponse

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/vault/decrypt_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  data_key: :data_key,
  id: :id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DecryptResponse

Returns a new instance of DecryptResponse.



16
17
18
19
20
# File 'lib/workos/vault/decrypt_response.rb', line 16

def initialize(json)
  hash = self.class.normalize(json)
  @data_key = hash[:data_key]
  @id = hash[:id]
end

Instance Attribute Details

#data_keyObject

Returns the value of attribute data_key.



12
13
14
# File 'lib/workos/vault/decrypt_response.rb', line 12

def data_key
  @data_key
end

#idObject

Returns the value of attribute id.



12
13
14
# File 'lib/workos/vault/decrypt_response.rb', line 12

def id
  @id
end