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