Class: WorkOS::DecryptResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::DecryptResponse
- Defined in:
- lib/workos/vault/decrypt_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ data_key: :data_key, id: :id }.freeze
Instance Attribute Summary collapse
-
#data_key ⇒ Object
Returns the value of attribute data_key.
-
#id ⇒ Object
Returns the value of attribute id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ DecryptResponse
constructor
A new instance of DecryptResponse.
Methods inherited from Types::BaseModel
Methods included from HashProvider
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_key ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
12 13 14 |
# File 'lib/workos/vault/decrypt_response.rb', line 12 def id @id end |