Class: WorkOS::AgentCredentialValidation
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AgentCredentialValidation
- Defined in:
- lib/workos/agents/agent_credential_validation.rb
Constant Summary collapse
- HASH_ATTRS =
{ valid: :valid, registration_id: :registration_id, expires_at: :expires_at }.freeze
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#registration_id ⇒ Object
Returns the value of attribute registration_id.
-
#valid ⇒ Object
Returns the value of attribute valid.
Instance Method Summary collapse
-
#initialize(json) ⇒ AgentCredentialValidation
constructor
A new instance of AgentCredentialValidation.
Constructor Details
#initialize(json) ⇒ AgentCredentialValidation
Returns a new instance of AgentCredentialValidation.
18 19 20 21 22 23 |
# File 'lib/workos/agents/agent_credential_validation.rb', line 18 def initialize(json) hash = self.class.normalize(json) @valid = hash[:valid] @registration_id = hash[:registration_id] @expires_at = hash[:expires_at] end |
Instance Attribute Details
#expires_at ⇒ Object
Returns the value of attribute expires_at.
13 14 15 |
# File 'lib/workos/agents/agent_credential_validation.rb', line 13 def expires_at @expires_at end |
#registration_id ⇒ Object
Returns the value of attribute registration_id.
13 14 15 |
# File 'lib/workos/agents/agent_credential_validation.rb', line 13 def registration_id @registration_id end |
#valid ⇒ Object
Returns the value of attribute valid.
13 14 15 |
# File 'lib/workos/agents/agent_credential_validation.rb', line 13 def valid @valid end |