Class: WorkOS::UpdateAuditLogsRetentionWithRetentionPeriodInDays
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::UpdateAuditLogsRetentionWithRetentionPeriodInDays
- Defined in:
- lib/workos/shared/update_audit_logs_retention_with_retention_period_in_days.rb
Constant Summary collapse
- HASH_ATTRS =
{ retention_period_in_days: :retention_period_in_days }.freeze
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(json) ⇒ UpdateAuditLogsRetentionWithRetentionPeriodInDays
constructor
A new instance of UpdateAuditLogsRetentionWithRetentionPeriodInDays.
Constructor Details
#initialize(json) ⇒ UpdateAuditLogsRetentionWithRetentionPeriodInDays
Returns a new instance of UpdateAuditLogsRetentionWithRetentionPeriodInDays.
21 22 23 24 |
# File 'lib/workos/shared/update_audit_logs_retention_with_retention_period_in_days.rb', line 21 def initialize(json) hash = self.class.normalize(json) @retention_period_in_days = hash[:retention_period_in_days] end |
Instance Attribute Details
#retention_period_in_days ⇒ Object
14 15 16 17 |
# File 'lib/workos/shared/update_audit_logs_retention_with_retention_period_in_days.rb', line 14 def retention_period_in_days warn "[DEPRECATION] `retention_period_in_days` is deprecated and will be removed in a future version.", uplevel: 1 @retention_period_in_days end |