Class: WorkOS::ApiKeyUpdatedDataPreviousAttribute
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::ApiKeyUpdatedDataPreviousAttribute
- Defined in:
- lib/workos/api_keys/api_key_updated_data_previous_attribute.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) ⇒ ApiKeyUpdatedDataPreviousAttribute
constructor
A new instance of ApiKeyUpdatedDataPreviousAttribute.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ ApiKeyUpdatedDataPreviousAttribute
Returns a new instance of ApiKeyUpdatedDataPreviousAttribute.
13 14 15 16 |
# File 'lib/workos/api_keys/api_key_updated_data_previous_attribute.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/api_key_updated_data_previous_attribute.rb', line 11 def expires_at @expires_at end |