Class: WorkOS::VaultByokKeyVerificationCompletedData

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/vault/vault_byok_key_verification_completed_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  organization_id: :organization_id,
  key_provider: :key_provider,
  verified: :verified
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ VaultByokKeyVerificationCompletedData

Returns a new instance of VaultByokKeyVerificationCompletedData.



18
19
20
21
22
23
# File 'lib/workos/vault/vault_byok_key_verification_completed_data.rb', line 18

def initialize(json)
  hash = self.class.normalize(json)
  @organization_id = hash[:organization_id]
  @key_provider = hash[:key_provider]
  @verified = hash[:verified]
end

Instance Attribute Details

#key_providerObject

Returns the value of attribute key_provider.



13
14
15
# File 'lib/workos/vault/vault_byok_key_verification_completed_data.rb', line 13

def key_provider
  @key_provider
end

#organization_idObject

Returns the value of attribute organization_id.



13
14
15
# File 'lib/workos/vault/vault_byok_key_verification_completed_data.rb', line 13

def organization_id
  @organization_id
end

#verifiedObject

Returns the value of attribute verified.



13
14
15
# File 'lib/workos/vault/vault_byok_key_verification_completed_data.rb', line 13

def verified
  @verified
end