Class: WorkOS::AgentAdminValidateCredentialRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AgentAdminValidateCredentialRequest
- 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
-
#audience ⇒ Object
Returns the value of attribute audience.
-
#credential ⇒ Object
Returns the value of attribute credential.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(json) ⇒ AgentAdminValidateCredentialRequest
constructor
A new instance of AgentAdminValidateCredentialRequest.
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
#audience ⇒ Object
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 |
#credential ⇒ Object
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 |
#type ⇒ Object
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 |