Class: WorkOS::AgentAdminValidateCredentialRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/agents/agent_admin_validate_credential_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  type: :type,
  credential: :credential,
  audience: :audience
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AgentAdminValidateCredentialRequest

Returns a new instance of AgentAdminValidateCredentialRequest.



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

def initialize(json)
  hash = self.class.normalize(json)
  @type = hash[:type]
  @credential = hash[:credential]
  @audience = hash[:audience]
end

Instance Attribute Details

#audienceObject

Returns the value of attribute audience.



13
14
15
# File 'lib/workos/agents/agent_admin_validate_credential_request.rb', line 13

def audience
  @audience
end

#credentialObject

Returns the value of attribute credential.



13
14
15
# File 'lib/workos/agents/agent_admin_validate_credential_request.rb', line 13

def credential
  @credential
end

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/workos/agents/agent_admin_validate_credential_request.rb', line 13

def type
  @type
end