Class: WorkOS::ExpireApiKey
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::ExpireApiKey
- Defined in:
- lib/workos/api_keys/expire_api_key.rb
Constant Summary collapse
- HASH_ATTRS =
{ expires_at: :expires_at }.freeze
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ExpireApiKey
constructor
A new instance of ExpireApiKey.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ ExpireApiKey
Returns a new instance of ExpireApiKey.
13 14 15 16 |
# File 'lib/workos/api_keys/expire_api_key.rb', line 13 def initialize(json) hash = self.class.normalize(json) @expires_at = hash[:expires_at] end |
Instance Attribute Details
#expires_at ⇒ Object
Returns the value of attribute expires_at.
11 12 13 |
# File 'lib/workos/api_keys/expire_api_key.rb', line 11 def expires_at @expires_at end |